Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Chef Workstation on Azure - WinOps 2018

Chef Workstation on Azure - WinOps 2018

Presentation delivered at WinOps London conference in November, 2018.

Stuart Preston

November 16, 2018
Tweet

More Decks by Stuart Preston

Other Decks in Technology

Transcript

  1. #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!)
  2. #WinOpsLondon2018 @stuartpreston Chef Portfolio ECOSYSTEM Open Source (please contribute!) Commercial

    (please pay us!) Infrastructure Automation Compliance Automation Application Automation
  3. #WinOpsLondon2018 @stuartpreston Chef Roadmap Over the years, the scope of

    Chef expanded • Configuration Management • Service Discovery • Provisioning • Scheduling • Clustering • Dependency verification • Secrets Management
  4. #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
  5. #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
  6. #WinOpsLondon2018 @stuartpreston CHEF ECOSYSTEM Chef + Windows - "batteries included"

    CHOCOLATEY POWERSHELL IIS WINDOWS powershell_script dsc_script/dsc_resource windows_* resources OTHER COOKBOOKS APP COOKBOOKS
  7. #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
  8. #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
  9. #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
  10. #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
  11. #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
  12. #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
  13. #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
  14. #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