-
Notifications
You must be signed in to change notification settings - Fork 5
/
steps_knife_config.yml
39 lines (34 loc) · 988 Bytes
/
steps_knife_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
steps:
- task: chef-software.chef-azdo.helpers.helper@3
displayName: 'Configure Knife'
inputs:
helper: 'setupChef'
chefendpoint: $(CHEF_ENDPOINT)
# - task: DownloadSecureFile@1
# name: credentials
# displayName: 'Download credentials'
# inputs:
# secureFile: 'credentials'
# - task: DownloadSecureFile@1
# name: greynoldspem
# displayName: 'Download greynolds.pem'
# inputs:
# secureFile: 'greynolds.pem'
# - task: CmdLine@2
# displayName: 'Configure Chef Repo'
# inputs:
# script: |
# mkdir ~/.chef
# mv $(credentials.secureFilePath) ~/.chef
# mv $(greynoldspem.secureFilePath) ~/.chef
# ls ~/.chef
# - task: chef-software.chef-azdo.execute.component@3
# displayName: 'Knife List Profiles'
# inputs:
# component: 'knife'
# arguments: 'config list-profiles'
- task: chef-software.chef-azdo.execute.component@3
displayName: 'Knife Config Show'
inputs:
component: 'knife'
arguments: 'config show'