Automate Configuration Tasks
Chef lets you automate every aspect of Windows management. This example shows you how to install Git on Windows, using the chocolatey_package resource.
chocolatey_package 'git.install' do options "-params '\"/GitAndUnixToolsOnPath/NoAutoCrlf\"'" version '2.8.0' action :install end
There are two optional parameters that are passed to the Git installer. The first,
GitAndUnixToolsOnPath, ensures that all the Git tools are included in PATH, and not just Git. The second,
NoAutoCrlf, ensures that Git does not perform any line-ending conversions when checking out or committing text files.
If you need to install Chocolatey on a node, simply run the default recipe in the Chocolatey cookbook.
Chef and Desired State Configuration (DSC)
DSC is a PowerShell-based configuration system for Windows that is provided by Microsoft. Chef fully supports DSC and, together, Chef and DSC make a powerful combination for managing your infrastructure, both in your data center and on Microsoft Azure.
Chef and DSC share common concepts, such as the notion of policy-based convergence. Properties in DSC are similar to attributes in Chef. Resources in DSC are similar to Chef resources and they incorporate Microsoft’s knowledge of Windows components. Examples of DSC resources include Active Directory, SQL Server and IIS. Any DSC resource can be included in a Chef recipe.
To get started, take a look at Chef and Microsoft’s Desired State Configuration (DSC), where Chef’s Adam Edwards and Microsoft’s Jeffrey Snover discuss how to use DSC with Chef. Another good resource is Chef and DSC, given by Chef’s Steve Murawski.
Creative Cloud had an aggressive timeline for a company the size of Adobe. To get there we had to make two assumptions. The first was AWS. The second, which was my choice, was to use Chef.
Cloud Platform Engineering Manager, Adobe
1. Register to become a Chef partner here (if you haven’t already)
2. Be a partner in good standing
1. Enroll in the program
2. Engage with with Chef Partner engineering to:
- Discuss potential features
- Technical Q&A
- Code review
3. Adhere to Chef guidelines and best practices
Maintain and Market:
1. Chef led blog and social media announcement of your cookbook
2. Badging of your cookbook in Chef Supermarket
3. Partner provides quarterly support and maintenance of cookbook