Share
Embed
Chef Workstation on Azure - WinOps 2018
Presentation delivered at WinOps London conference in November, 2018.
Stuart Preston
November 16, 2018
Transcript
19 slides
-
#WinOpsLondon2018 @stuartpreston Chef Workstation on Azure Stuart Preston Principal Engineer
at Chef Software Microsoft Azure MVP [email protected] -
#WinOpsLondon2018 @stuartpreston Agenda • Overview of Chef and roadmap •
Chef on Windows engineering focus for 2019 • DEMO: Chef Workstation on Azure • DEMO: InSpec on Azure • Wrap up demos • AMA - ask me anything (time permitting!) -
#WinOpsLondon2018 @stuartpreston Chef Portfolio ECOSYSTEM Open Source (please contribute!) Commercial
(please pay us!) Infrastructure Automation Compliance Automation Application Automation -
#WinOpsLondon2018 @stuartpreston Chef Roadmap Over the years, the scope of
Chef expanded • Configuration Management • Service Discovery • Provisioning • Scheduling • Clustering • Dependency verification • Secrets Management -
#WinOpsLondon2018 @stuartpreston Chef Roadmap Over the years, the scope of
Chef expanded • Configuration Management • Service Discovery Habitat • Provisioning Your provisioning tool • Scheduling Your scheduling tool • Clustering Habitat • Dependency verification Habitat • Secrets Management Your secrets management tool -
#WinOpsLondon2018 @stuartpreston Chef + Windows ecosystem (Chef 12 to 13-era)
CHEF ECOSYSTEM WINDOWS CHOCOLATEY POWERSHELL IIS powershell_script dsc_script/dsc_resource windows_* resources OTHER COOKBOOKS APP COOKBOOKS -
#WinOpsLondon2018 @stuartpreston CHEF ECOSYSTEM Chef + Windows - "batteries included"
CHOCOLATEY POWERSHELL IIS WINDOWS powershell_script dsc_script/dsc_resource windows_* resources OTHER COOKBOOKS APP COOKBOOKS -
#WinOpsLondon2018 @stuartpreston Chef Ecosystem Business Value Revenue Growth Velocity Agility,
Speed, Efficiency, Safety Infrastructure Automation Compliance Automation Application Automation FOUNDATIONAL CAPABILITIES AD-HOC Standardization leads to initial cost reductions and delivery success REPEATABLE Service delivery team productivity increases MANAGED Customer-focused innovation delivered continuously OPTIMIZED Delivering sustainable competitive advantage Achieving Continuous Automation Idea Ship -
#WinOpsLondon2018 @stuartpreston Chef Workstation Business Value Revenue Growth Velocity Agility,
Speed, Efficiency, Safety Infrastructure Automation Compliance Automation Application Automation FOUNDATIONAL CAPABILITIES AD-HOC Standardization leads to initial cost reductions and delivery success REPEATABLE Service delivery team productivity increases MANAGED Customer-focused innovation delivered continuously OPTIMIZED Delivering sustainable competitive advantage Achieving Continuous Automation Idea Ship CHEF WORKSTATION -
#WinOpsLondon2018 @stuartpreston Chef Workstation The easiest way to get started
with Chef • Replaces Chef Development Kit (ChefDK) • Ad-hoc, remote task execution mode • Auto-updating • Stable vs Current channel switch • Free/Open Source - https://github.com/chef/chef-workstation -
#WinOpsLondon2018 @stuartpreston chef-run command - ad-hoc execution 1. chef-run <TARGET(S)>
<RESOURCE> <RESOURCE_NAME> [PROPERTIES] 2. chef-run <TARGET(S)> <RECIPE> 3. ssh:// or winrm:// targets supported -
#WinOpsLondon2018 @stuartpreston Chef resource > chef-run example user 'stuart' do
action :create end becomes chef-run winrm://[email protected] --password password \ user stuart action=create -
#WinOpsLondon2018 @stuartpreston Chef resource > chef-run example chocolatey_package 'notepad2' do
action :install end becomes chef-run winrm://[email protected] --password password \ chocolatey_package notepad2 -
#WinOpsLondon2018 @stuartpreston Azure Cloud Shell • Container running inside Azure
Container Instances • Access via Azure Portal or via dedicated site https://shell.azure.com • Pre-loaded with tools required to administer and deploy within the Azure environment -
#WinOpsLondon2018 @stuartpreston What did we show? • Chef Workstation running
in Azure Cloud Shell • Running ad-hoc tasks using the chef-run command • Cookbook generation inside Azure Cloud Shell using chef generate repo • Code Editor (Monaco) running in Azure Cloud Shell • Testing resources inside the VM with InSpec • Testing Azure resources with InSpec