-
Notifications
You must be signed in to change notification settings - Fork 3
install chefdk
Russell Seymour edited this page Oct 16, 2018
·
3 revisions
This task installs ChefDK on the build agent, which means that the setup of the build agent is much simpler.
There are no settings that are required, however there are some "Advanced" settings that can be tweaked if the installation has to be handled differently in your environment.
Setting | Group | Required | Default Value | Description |
---|---|---|---|---|
Force Install | Advanced | No | False | Should ChefDK installation be forced even if already installed |
User Sudo | Advanced | No | True | On a Linux machine should sudo be used to install the software |
Channel | Advanced | No | Current | The channel from which ChefDK should be installed |
ChefDK Version | Advanced | No | latest | Specify the version of ChefDK to install |
Chef Install Script Download URL - Windows | Advanced | No | https://omnitruck.chef.io/install.ps1 | URL to the script to install Chef products when running on Windows |
Chef Install Script Download URL - Linux | Advanced | No | https://omnitruck.chef.io/install.sh | URL to the script to download to install Chef products when running on Linux |
Windows Download Folder | Advanced | No | c:\windows\temp | Location of the downloaded script on Windows |
Linux Download Folder | Advanced | No | /tmp | Location of the downloaded script on Linux |
In previous versions of the Chef Extension for Azure DevOps we have advised that the agent be preinstalled with ChefDK. This meant a lot more work was required before the Chef tasks could be used. By adding this new task it is possible to install the ChefDK as part of the build pipeline.
Private Agent | Hosted Agent | |
---|---|---|
Windows | Yes | No |
Linux | Yes | Yes |
Endpoints
Tasks
- Add Variables to Chef Environment
- Install ChefDK
- Execute Chef Client
- Install InSpec
- Execute Inspec
- Install Gem
- Execute Knife
- Linting
- Test Kitchen
- Release Cookbook Version to Environment
- Update Cookbook Version Number
- Upload Cookbook to Chef Server
- Publish Cookbook to Supermarket
Guides
Releases