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

PuppetConf 2016 - Puppet & Azure

Kenaz Kwa
October 20, 2016

PuppetConf 2016 - Puppet & Azure

Talk about how to use Puppet and Azure together.

Kenaz Kwa

October 20, 2016
Tweet

Other Decks in Technology

Transcript

  1. What We’ll Cover Leveraging the Azure Marketplace Smart Facts &

    Classification Using Native Resources Getting the Most from Azure 4 Puppet & Azure
  2. Why Puppet? Exploding number of VMs Best in class configuration

    Day 2++ management Cross-platform, cross-cloud 10 Puppet & Azure
  3. Puppet & Azure # Creates a new Resource Manager VM

    azure_vm { 'testvm': ensure => running, image => 'canonical:ubuntuserver:14.04.2-LTS:latest', location => 'eastus', user => 'sampleuser', password => 'SpecPass123!@#$%', size => 'Standard_D1_v2', resource_group => 'group', }
  4. Puppet & Azure # Creates a new Resource Manager Resource

    Group azure_resource_group { 'myresourceroup1': ensure => present, location => 'eastus', } # Creates a new Resource Manager Storage Account azure_storage_account { 'storageAccount143253': ensure => present, account_type => 'Standard_LRS', location => 'eastus', resource_group => 'group', }
  5. Puppet & Azure # Creates a new Resource Manager Template

    Deployment azure_resource_template { 'test-deployment': ensure => present, resource_group => 'group', source => $source_uri params => { 'user' => 'sampleuser', 'password' => 'SpecPass123!@#$%', 'size' => 'Standard_D1_v2', } }
  6. 30 Puppet Master 0 5 10 T1 T2 T3 T4

    T5 Website Load Load Instances VM Scale Set
  7. What’s happening? 1. Detects CPU threshold reached 2. Triggers auto

    scale event 3. Creates a new VM with Puppet Agent 4. Pulls down IIS configuration from PE Master 5. Adds VM to load-balanced set 31 Puppet & Azure
  8. Appendix What Link Supported Azure Module https://forge.puppet.com/puppetlabs/azure Puppet Enterprise 2016.1

    Template https://azure.microsoft.com/en- us/marketplace/partners/puppet/puppet-enterprise-2016- 1puppet-enterprise-2016-1/ Puppet Test Drive on Azure http://puppet.com/test-drive-azure Puppet Enterprise Cluster ARM template https://github.com/Azure/azure-quickstart- templates/tree/master/puppet-enterprise-cluster VM Scale Sets Documentation https://azure.microsoft.com/en-us/documentation/articles/virtual- machine-scale-sets-overview/ 34 Puppet & Azure