PuppetCamp London 2013 - Automated OS and App deployment using Puppet and Razor - Jonas Rosland

Jonas Rosland
Jonas RoslandOpen Source Community Manager at {code}
Automated OS & App
                                            Deployment
                                            Using Puppet and Razor

                                            Jonas Rosland
                                            Software-Defined Specialist
                                            @virtualswede




© Copyright 2012 EMC Corporation. All rights reserved.                    1
So what’s Razor?
    Cloud provisioning tool
    Operating Systems AND Hypervisors
    Physical AND virtual
    Event-driven instead of user-driven




© Copyright 2012 EMC Corporation. All rights reserved.   2
Why not just use templates?
    They get old fast
    Pre-packages bits are harder to maintain
    No easy upgrade to next distro version




© Copyright 2012 EMC Corporation. All rights reserved.   3
So how does it work?




© Copyright 2012 EMC Corporation. All rights reserved.   4
Auto-Discovered Real-Time Inventory
Data
    Boots a Micro-Kernel
    Primarily using facter
    For every hardware node
    Eliminating inefficient, error-prone manual
    processes
    Full insight into the latest, up-to-date status
    of your hardware inventory




© Copyright 2012 EMC Corporation. All rights reserved.   5
Dynamic Image Selection
    Selects the correct operating system image
    Based on auto-discovered, real-time
    inventory data
    No manual intervention needed




© Copyright 2012 EMC Corporation. All rights reserved.   6
Model-Based Provisioning
    Models the desired state of each hardware
    node and its operating system
    Automatically tracks provisioning progress
    toward this state
    Full control over a node’s boot sequence and
    a complete log of its lifecycle




© Copyright 2012 EMC Corporation. All rights reserved.   7
Open APIs and Plug-in Architecture
    RESTful open APIs
    Full programmatic control of the rules and
    models that govern operating system image
    selection and hardware provisioning
    Enables the Puppet community to collaborate
    and share plug-ins to support any operating
    system and any boot sequence




© Copyright 2012 EMC Corporation. All rights reserved.   8
Metal-to-Cloud Application Lifecycle
Management
    No need for siloed management tools!




© Copyright 2012 EMC Corporation. All rights reserved.   9
Puppet + Razor = Good!




© Copyright 2012 EMC Corporation. All rights reserved.   10
Razor installation using Puppet
node razor {
    class { 'sudo':
        config_file_replace => false,
    }
    include razor
}




© Copyright 2012 EMC Corporation. All rights reserved.   11
Add a broker
rz_broker { 'puppet_broker':
    ensure => present,
    plugin => 'puppet',
    metadata => {
        broker_version => '2.7.18',
        server => 'puppet.purevirtual.lab',
    }
  }



© Copyright 2012 EMC Corporation. All rights reserved.   12
Add an image to deploy
rz_image { "ubuntu_precise_image":
    ensure => present,
    type                => 'os',
    version => '12.04.1',
 source =>
"http://ftp.sunet.se/pub/os/Linux/distributions/ubunt
u/ubuntu-cd/12.04.1/ubuntu-12.04.1-server-
amd64.iso",
}



© Copyright 2012 EMC Corporation. All rights reserved.   13
Add a model for deployment
rz_model { 'install_ubuntu_precise':
    ensure => present,
    description => 'Ubuntu Precise',
    image => 'ubuntu_precise_image',
  metadata => {'domainname' => 'purevirtual.lab',
'hostname_prefix' => 'ubuntu-', 'root_password' =>
'password'},
    template => 'ubuntu_precise',
}



© Copyright 2012 EMC Corporation. All rights reserved.   14
Finally, create a policy to tie it all
together
rz_policy { 'ubuntu_precise_policy':
    ensure => present,
    broker => 'puppet_broker',
    model                  => 'install_ubuntu_precise',
    enabled => 'true',
    tags                => ['memsize_1GiB'],
    template => 'linux_deploy',
    maximum => 10,
}


© Copyright 2012 EMC Corporation. All rights reserved.    15
DEMOTIME!




© Copyright 2012 EMC Corporation. All rights reserved.   16
Wanna get started?
How to and best practices on my blog:
http://purevirtual.eu/category/automation/puppet/
http://purevirtual.eu/category/automation/razor/


                                          Send me an email/tweet!
                                           jonas.rosland@emc.com
                                                         @virtualswede




© Copyright 2012 EMC Corporation. All rights reserved.                   17
PuppetCamp London 2013 - Automated OS and App deployment using Puppet and Razor - Jonas Rosland
1 of 18

Recommended

OS and Application deployment using Razor and Puppet by
OS and Application deployment using Razor and PuppetOS and Application deployment using Razor and Puppet
OS and Application deployment using Razor and PuppetPuppet
2.7K views17 slides
VMUG Sweden 2013-02-08 - Puppet and Razor by
VMUG Sweden 2013-02-08 - Puppet and RazorVMUG Sweden 2013-02-08 - Puppet and Razor
VMUG Sweden 2013-02-08 - Puppet and RazorJonas Rosland
731 views26 slides
PuppetCamp Amsterdam 2013 - Automated OS and App deployment using Puppet and ... by
PuppetCamp Amsterdam 2013 - Automated OS and App deployment using Puppet and ...PuppetCamp Amsterdam 2013 - Automated OS and App deployment using Puppet and ...
PuppetCamp Amsterdam 2013 - Automated OS and App deployment using Puppet and ...Jonas Rosland
522 views19 slides
Razor, the Provisioning Toolbox - PuppetConf 2014 by
Razor, the Provisioning Toolbox - PuppetConf 2014Razor, the Provisioning Toolbox - PuppetConf 2014
Razor, the Provisioning Toolbox - PuppetConf 2014Puppet
2.1K views25 slides
Razor & Puppet: The Perfect Marriage? by
Razor & Puppet: The Perfect Marriage?Razor & Puppet: The Perfect Marriage?
Razor & Puppet: The Perfect Marriage?Puppet
2.9K views28 slides
PuppetCamp Verona 2013 - Razor, Puppet & VMware by
PuppetCamp Verona 2013 - Razor, Puppet & VMwarePuppetCamp Verona 2013 - Razor, Puppet & VMware
PuppetCamp Verona 2013 - Razor, Puppet & VMwaregguglie
568 views16 slides

More Related Content

Viewers also liked

Grade 10 science by
Grade 10 scienceGrade 10 science
Grade 10 scienceMadura Jayathissa
1.1K views31 slides
ทดสอบไวยากรณ์ สมาส Power point 50 by
ทดสอบไวยากรณ์ สมาส Power point 50ทดสอบไวยากรณ์ สมาส Power point 50
ทดสอบไวยากรณ์ สมาส Power point 50วัดดอนทอง กาฬสินธุ์
469 views54 slides
06essay by
06essay06essay
06essayuser_essays
1.1K views3 slides
Classroom rules by
Classroom rulesClassroom rules
Classroom rulesEric Cruz
425 views16 slides
Trabajo by
TrabajoTrabajo
TrabajoLauraCamila_10
273 views7 slides

Viewers also liked(20)

Classroom rules by Eric Cruz
Classroom rulesClassroom rules
Classroom rules
Eric Cruz425 views
Ask these 5 awesome questions to win sales by KUMAR LANG
Ask these 5 awesome questions to win salesAsk these 5 awesome questions to win sales
Ask these 5 awesome questions to win sales
KUMAR LANG565 views
Hergebruik overheidsinformatie by Arjan Fassed
Hergebruik overheidsinformatieHergebruik overheidsinformatie
Hergebruik overheidsinformatie
Arjan Fassed393 views
Open data en hergebruik by Arjan Fassed
Open data en hergebruikOpen data en hergebruik
Open data en hergebruik
Arjan Fassed292 views
The Genocide against Mayan Peoples in Guatemala during the 80s by vgrinb
The Genocide against Mayan Peoples in Guatemala during the 80sThe Genocide against Mayan Peoples in Guatemala during the 80s
The Genocide against Mayan Peoples in Guatemala during the 80s
vgrinb902 views
2015 03-19-devops-toolkit-varrow-madness by Jonas Rosland
2015 03-19-devops-toolkit-varrow-madness2015 03-19-devops-toolkit-varrow-madness
2015 03-19-devops-toolkit-varrow-madness
Jonas Rosland807 views
Classroom rules by Eric Cruz
Classroom rulesClassroom rules
Classroom rules
Eric Cruz893 views
VMworld 2015 San Francisco - CNA5520 - Run your Stateful and Stateless Apps i... by Jonas Rosland
VMworld 2015 San Francisco - CNA5520 - Run your Stateful and Stateless Apps i...VMworld 2015 San Francisco - CNA5520 - Run your Stateful and Stateless Apps i...
VMworld 2015 San Francisco - CNA5520 - Run your Stateful and Stateless Apps i...
Jonas Rosland1.5K views

Similar to PuppetCamp London 2013 - Automated OS and App deployment using Puppet and Razor - Jonas Rosland

Automated OS and Application deployment using Razor and Puppet by
Automated OS and Application deployment using Razor and PuppetAutomated OS and Application deployment using Razor and Puppet
Automated OS and Application deployment using Razor and PuppetPuppet
5.3K views19 slides
Codename one by
Codename oneCodename one
Codename oneSoftware Infrastructure
1.3K views225 slides
Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Me... by
Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Me...Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Me...
Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Me...Codemotion
1.2K views22 slides
Delivering Mobile Apps to the Field with Oracle by
Delivering Mobile Apps to the Field with OracleDelivering Mobile Apps to the Field with Oracle
Delivering Mobile Apps to the Field with OracleSimon Haslam
157 views34 slides
Puppet for Junos by
Puppet for JunosPuppet for Junos
Puppet for JunosJuniper Networks
3.1K views47 slides
What is Codename One - Transcript.pdf by
What is Codename One - Transcript.pdfWhat is Codename One - Transcript.pdf
What is Codename One - Transcript.pdfShaiAlmog1
898 views13 slides

Similar to PuppetCamp London 2013 - Automated OS and App deployment using Puppet and Razor - Jonas Rosland(20)

Automated OS and Application deployment using Razor and Puppet by Puppet
Automated OS and Application deployment using Razor and PuppetAutomated OS and Application deployment using Razor and Puppet
Automated OS and Application deployment using Razor and Puppet
Puppet5.3K views
Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Me... by Codemotion
Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Me...Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Me...
Sviluppo IoT - Un approccio standard da Nerd ad Impresa, prove pratiche di Me...
Codemotion1.2K views
Delivering Mobile Apps to the Field with Oracle by Simon Haslam
Delivering Mobile Apps to the Field with OracleDelivering Mobile Apps to the Field with Oracle
Delivering Mobile Apps to the Field with Oracle
Simon Haslam157 views
What is Codename One - Transcript.pdf by ShaiAlmog1
What is Codename One - Transcript.pdfWhat is Codename One - Transcript.pdf
What is Codename One - Transcript.pdf
ShaiAlmog1898 views
Enabing DevOps in an SDN World by Cisco DevNet
Enabing DevOps in an SDN WorldEnabing DevOps in an SDN World
Enabing DevOps in an SDN World
Cisco DevNet4.9K views
Configuration Management and Transforming Legacy Applications in the Enterpri... by Docker, Inc.
Configuration Management and Transforming Legacy Applications in the Enterpri...Configuration Management and Transforming Legacy Applications in the Enterpri...
Configuration Management and Transforming Legacy Applications in the Enterpri...
Docker, Inc.758 views
What is Codename One.pdf by ShaiAlmog1
What is Codename One.pdfWhat is Codename One.pdf
What is Codename One.pdf
ShaiAlmog11 view
EclipseCon 2016 - OCCIware : one Cloud API to rule them all by Marc Dutoo
EclipseCon 2016 - OCCIware : one Cloud API to rule them allEclipseCon 2016 - OCCIware : one Cloud API to rule them all
EclipseCon 2016 - OCCIware : one Cloud API to rule them all
Marc Dutoo1.1K views
OCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open Wide by OCCIware
OCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open WideOCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open Wide
OCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open Wide
OCCIware383 views
Hacking the Codename One Source Code - Part I - Transcript.pdf by ShaiAlmog1
Hacking the Codename One Source Code - Part I - Transcript.pdfHacking the Codename One Source Code - Part I - Transcript.pdf
Hacking the Codename One Source Code - Part I - Transcript.pdf
ShaiAlmog1294 views
EMC World 2016 - mioaITL.08 Infrastructure as Code: Not Your Parent's Data Ce... by {code}
EMC World 2016 - mioaITL.08 Infrastructure as Code: Not Your Parent's Data Ce...EMC World 2016 - mioaITL.08 Infrastructure as Code: Not Your Parent's Data Ce...
EMC World 2016 - mioaITL.08 Infrastructure as Code: Not Your Parent's Data Ce...
{code} 1.5K views
InduSoft Water Wastewater Webinar 2012 by AVEVA
InduSoft Water Wastewater Webinar 2012InduSoft Water Wastewater Webinar 2012
InduSoft Water Wastewater Webinar 2012
AVEVA2.4K views
Android Demonstration Solution (ADS) by Amila Gamanayake
Android Demonstration Solution (ADS) Android Demonstration Solution (ADS)
Android Demonstration Solution (ADS)
Amila Gamanayake884 views
Introduction to Test Execution Automation Framework for Embedded Systems by HiroshiMisawa
Introduction to Test Execution Automation Framework for Embedded SystemsIntroduction to Test Execution Automation Framework for Embedded Systems
Introduction to Test Execution Automation Framework for Embedded Systems
HiroshiMisawa192 views

More from Jonas Rosland

Running stateful services in containers - ContainerDays Boston 2016 by
Running stateful services in containers - ContainerDays Boston 2016Running stateful services in containers - ContainerDays Boston 2016
Running stateful services in containers - ContainerDays Boston 2016Jonas Rosland
6.1K views35 slides
Open Source, infrastructure as Code, Cloud Native Apps 2015 by
Open Source, infrastructure as Code, Cloud Native Apps 2015Open Source, infrastructure as Code, Cloud Native Apps 2015
Open Source, infrastructure as Code, Cloud Native Apps 2015Jonas Rosland
1.2K views59 slides
Docker and Containers overview - Docker Workshop by
Docker and Containers overview - Docker WorkshopDocker and Containers overview - Docker Workshop
Docker and Containers overview - Docker WorkshopJonas Rosland
2K views31 slides
VMworld 2015 San Francisco - INF5432 - Infrastructure as Code - Ban Snowflake... by
VMworld 2015 San Francisco - INF5432 - Infrastructure as Code - Ban Snowflake...VMworld 2015 San Francisco - INF5432 - Infrastructure as Code - Ban Snowflake...
VMworld 2015 San Francisco - INF5432 - Infrastructure as Code - Ban Snowflake...Jonas Rosland
1.5K views59 slides
DevOps at EMC NYC August 2015 - Modernize your apps to drive organizational e... by
DevOps at EMC NYC August 2015 - Modernize your apps to drive organizational e...DevOps at EMC NYC August 2015 - Modernize your apps to drive organizational e...
DevOps at EMC NYC August 2015 - Modernize your apps to drive organizational e...Jonas Rosland
1.2K views104 slides
Scale out data persistence for all your stateful container needs - Docker Mee... by
Scale out data persistence for all your stateful container needs - Docker Mee...Scale out data persistence for all your stateful container needs - Docker Mee...
Scale out data persistence for all your stateful container needs - Docker Mee...Jonas Rosland
1.8K views20 slides

More from Jonas Rosland(13)

Running stateful services in containers - ContainerDays Boston 2016 by Jonas Rosland
Running stateful services in containers - ContainerDays Boston 2016Running stateful services in containers - ContainerDays Boston 2016
Running stateful services in containers - ContainerDays Boston 2016
Jonas Rosland6.1K views
Open Source, infrastructure as Code, Cloud Native Apps 2015 by Jonas Rosland
Open Source, infrastructure as Code, Cloud Native Apps 2015Open Source, infrastructure as Code, Cloud Native Apps 2015
Open Source, infrastructure as Code, Cloud Native Apps 2015
Jonas Rosland1.2K views
Docker and Containers overview - Docker Workshop by Jonas Rosland
Docker and Containers overview - Docker WorkshopDocker and Containers overview - Docker Workshop
Docker and Containers overview - Docker Workshop
Jonas Rosland2K views
VMworld 2015 San Francisco - INF5432 - Infrastructure as Code - Ban Snowflake... by Jonas Rosland
VMworld 2015 San Francisco - INF5432 - Infrastructure as Code - Ban Snowflake...VMworld 2015 San Francisco - INF5432 - Infrastructure as Code - Ban Snowflake...
VMworld 2015 San Francisco - INF5432 - Infrastructure as Code - Ban Snowflake...
Jonas Rosland1.5K views
DevOps at EMC NYC August 2015 - Modernize your apps to drive organizational e... by Jonas Rosland
DevOps at EMC NYC August 2015 - Modernize your apps to drive organizational e...DevOps at EMC NYC August 2015 - Modernize your apps to drive organizational e...
DevOps at EMC NYC August 2015 - Modernize your apps to drive organizational e...
Jonas Rosland1.2K views
Scale out data persistence for all your stateful container needs - Docker Mee... by Jonas Rosland
Scale out data persistence for all your stateful container needs - Docker Mee...Scale out data persistence for all your stateful container needs - Docker Mee...
Scale out data persistence for all your stateful container needs - Docker Mee...
Jonas Rosland1.8K views
CIO Connect 2015 - Modernize your applications to drive organizational effici... by Jonas Rosland
CIO Connect 2015 - Modernize your applications to drive organizational effici...CIO Connect 2015 - Modernize your applications to drive organizational effici...
CIO Connect 2015 - Modernize your applications to drive organizational effici...
Jonas Rosland645 views
Docker Compose and Panamax - ContainerDays Boston - June 2015 by Jonas Rosland
Docker Compose and Panamax - ContainerDays Boston - June 2015Docker Compose and Panamax - ContainerDays Boston - June 2015
Docker Compose and Panamax - ContainerDays Boston - June 2015
Jonas Rosland1.8K views
Open Source and EMC {code} Overview - June 2015 by Jonas Rosland
Open Source and EMC {code} Overview - June 2015Open Source and EMC {code} Overview - June 2015
Open Source and EMC {code} Overview - June 2015
Jonas Rosland847 views
CoreOS 101 - EMC World 2015 by Jonas Rosland
CoreOS 101 - EMC World 2015CoreOS 101 - EMC World 2015
CoreOS 101 - EMC World 2015
Jonas Rosland2.1K views
Docker 101 - DevOps at EMC May 2015 by Jonas Rosland
Docker 101 - DevOps at EMC May 2015Docker 101 - DevOps at EMC May 2015
Docker 101 - DevOps at EMC May 2015
Jonas Rosland1.4K views
EMC World 2015 - The Devops Toolkit by Jonas Rosland
EMC World 2015 - The Devops ToolkitEMC World 2015 - The Devops Toolkit
EMC World 2015 - The Devops Toolkit
Jonas Rosland3.4K views
Docker and containers - For Boston Docker Meetup Workshop in March 2015 by Jonas Rosland
Docker and containers - For Boston Docker Meetup Workshop in March 2015Docker and containers - For Boston Docker Meetup Workshop in March 2015
Docker and containers - For Boston Docker Meetup Workshop in March 2015
Jonas Rosland1.6K views

Recently uploaded

Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive by
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveAutomating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveNetwork Automation Forum
34 views35 slides
MVP and prioritization.pdf by
MVP and prioritization.pdfMVP and prioritization.pdf
MVP and prioritization.pdfrahuldharwal141
31 views8 slides
Five Things You SHOULD Know About Postman by
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About PostmanPostman
36 views43 slides
Evolving the Network Automation Journey from Python to Platforms by
Evolving the Network Automation Journey from Python to PlatformsEvolving the Network Automation Journey from Python to Platforms
Evolving the Network Automation Journey from Python to PlatformsNetwork Automation Forum
13 views21 slides
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors by
TouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective SensorsTouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective Sensors
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensorssugiuralab
21 views15 slides
Info Session November 2023.pdf by
Info Session November 2023.pdfInfo Session November 2023.pdf
Info Session November 2023.pdfAleksandraKoprivica4
13 views15 slides

Recently uploaded(20)

Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive by Network Automation Forum
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveAutomating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Five Things You SHOULD Know About Postman by Postman
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About Postman
Postman36 views
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors by sugiuralab
TouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective SensorsTouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective Sensors
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors
sugiuralab21 views
"Running students' code in isolation. The hard way", Yurii Holiuk by Fwdays
"Running students' code in isolation. The hard way", Yurii Holiuk "Running students' code in isolation. The hard way", Yurii Holiuk
"Running students' code in isolation. The hard way", Yurii Holiuk
Fwdays17 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson92 views
STPI OctaNE CoE Brochure.pdf by madhurjyapb
STPI OctaNE CoE Brochure.pdfSTPI OctaNE CoE Brochure.pdf
STPI OctaNE CoE Brochure.pdf
madhurjyapb14 views
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院 by IttrainingIttraining
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
Data Integrity for Banking and Financial Services by Precisely
Data Integrity for Banking and Financial ServicesData Integrity for Banking and Financial Services
Data Integrity for Banking and Financial Services
Precisely25 views
Serverless computing with Google Cloud (2023-24) by wesley chun
Serverless computing with Google Cloud (2023-24)Serverless computing with Google Cloud (2023-24)
Serverless computing with Google Cloud (2023-24)
wesley chun11 views
Case Study Copenhagen Energy and Business Central.pdf by Aitana
Case Study Copenhagen Energy and Business Central.pdfCase Study Copenhagen Energy and Business Central.pdf
Case Study Copenhagen Energy and Business Central.pdf
Aitana16 views

PuppetCamp London 2013 - Automated OS and App deployment using Puppet and Razor - Jonas Rosland

  • 1. Automated OS & App Deployment Using Puppet and Razor Jonas Rosland Software-Defined Specialist @virtualswede © Copyright 2012 EMC Corporation. All rights reserved. 1
  • 2. So what’s Razor? Cloud provisioning tool Operating Systems AND Hypervisors Physical AND virtual Event-driven instead of user-driven © Copyright 2012 EMC Corporation. All rights reserved. 2
  • 3. Why not just use templates? They get old fast Pre-packages bits are harder to maintain No easy upgrade to next distro version © Copyright 2012 EMC Corporation. All rights reserved. 3
  • 4. So how does it work? © Copyright 2012 EMC Corporation. All rights reserved. 4
  • 5. Auto-Discovered Real-Time Inventory Data Boots a Micro-Kernel Primarily using facter For every hardware node Eliminating inefficient, error-prone manual processes Full insight into the latest, up-to-date status of your hardware inventory © Copyright 2012 EMC Corporation. All rights reserved. 5
  • 6. Dynamic Image Selection Selects the correct operating system image Based on auto-discovered, real-time inventory data No manual intervention needed © Copyright 2012 EMC Corporation. All rights reserved. 6
  • 7. Model-Based Provisioning Models the desired state of each hardware node and its operating system Automatically tracks provisioning progress toward this state Full control over a node’s boot sequence and a complete log of its lifecycle © Copyright 2012 EMC Corporation. All rights reserved. 7
  • 8. Open APIs and Plug-in Architecture RESTful open APIs Full programmatic control of the rules and models that govern operating system image selection and hardware provisioning Enables the Puppet community to collaborate and share plug-ins to support any operating system and any boot sequence © Copyright 2012 EMC Corporation. All rights reserved. 8
  • 9. Metal-to-Cloud Application Lifecycle Management No need for siloed management tools! © Copyright 2012 EMC Corporation. All rights reserved. 9
  • 10. Puppet + Razor = Good! © Copyright 2012 EMC Corporation. All rights reserved. 10
  • 11. Razor installation using Puppet node razor { class { 'sudo': config_file_replace => false, } include razor } © Copyright 2012 EMC Corporation. All rights reserved. 11
  • 12. Add a broker rz_broker { 'puppet_broker': ensure => present, plugin => 'puppet', metadata => { broker_version => '2.7.18', server => 'puppet.purevirtual.lab', } } © Copyright 2012 EMC Corporation. All rights reserved. 12
  • 13. Add an image to deploy rz_image { "ubuntu_precise_image": ensure => present, type => 'os', version => '12.04.1', source => "http://ftp.sunet.se/pub/os/Linux/distributions/ubunt u/ubuntu-cd/12.04.1/ubuntu-12.04.1-server- amd64.iso", } © Copyright 2012 EMC Corporation. All rights reserved. 13
  • 14. Add a model for deployment rz_model { 'install_ubuntu_precise': ensure => present, description => 'Ubuntu Precise', image => 'ubuntu_precise_image', metadata => {'domainname' => 'purevirtual.lab', 'hostname_prefix' => 'ubuntu-', 'root_password' => 'password'}, template => 'ubuntu_precise', } © Copyright 2012 EMC Corporation. All rights reserved. 14
  • 15. Finally, create a policy to tie it all together rz_policy { 'ubuntu_precise_policy': ensure => present, broker => 'puppet_broker', model => 'install_ubuntu_precise', enabled => 'true', tags => ['memsize_1GiB'], template => 'linux_deploy', maximum => 10, } © Copyright 2012 EMC Corporation. All rights reserved. 15
  • 16. DEMOTIME! © Copyright 2012 EMC Corporation. All rights reserved. 16
  • 17. Wanna get started? How to and best practices on my blog: http://purevirtual.eu/category/automation/puppet/ http://purevirtual.eu/category/automation/razor/ Send me an email/tweet! jonas.rosland@emc.com @virtualswede © Copyright 2012 EMC Corporation. All rights reserved. 17

Editor's Notes

  1. Ockham’s Razor = Simpler explanations is better than complex ones
  2. Show:FacterRazor policyBoot up ESXi serverRazor nodeShow ESXibeing installed
  3. Templates cancurrently be ”linux_deploy” or ”vmware_hypervisor”
  4. Show:FacterRazor policyBoot up ESXi serverRazor nodeShow ESXibeing installed