Chef and PowerShell DSCMicrosoft TechEd 2014
Julian Dunn
Senior Consultant, Chef
May 12, 2014
Chef: Infrastructure as Code
• Declarative (like PowerShell DSC)• Cross-platform• Rich toolchain and testing
ecosystem
• Use cases:• Configuration Management
• Application Deployment
• Continuous Delivery
windows_feature 'Web-Server' do action :installend
package 'httpd' do action :installend
Use PowerShell DSC Resources in Chef
include_dsc 'WindowsFeature'
dsc_windowsfeature 'iis' do dsc_name 'Web-Server' dsc_ensure 'Present'end
Corresponds to DSC Resource Name
Native Chef resource syntax with mapping rules to avoid reserved words in Chef language (dsc_ prefix)
Mix and Match Chef Native Resources & DSC
dsc_windowsfeature 'iis' do dsc_name 'Web-Server' dsc_ensure 'Present'end
iis_pool 'FourthCoffee' do runtime_version "4.0" action :addend
DSC Resource
Non-DSC Chef Resource
Monitoring and Run Status Integration
Overall Infrastructure Status
Chef, Windows, PowerShell DSC and Azure
• PowerShell DSC native support shipping soon (2014 Q2/Q3 target)
• Native Azure portal integration• 3 Microsoft Chef Cookbooks• Technical docs maintained by Chef• Highlighted at //Build & ChefConf• Come visit us in booth 747!
Thank YouChef is in booth 747 in the main exhibit hall