vBrownbag 2013 June 4th - Puppet and Razor - Jonas Rosland

683 views

Published on

Great and fun session on the EMEA vBrownbag with a lot of really good questions, here are the slides for the presentation on Puppet and Razor.

Published in: Technology, Business
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
683
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
4
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide
  • Ockham’s Razor = Simpler explanations is better than complex ones
  • Show:FacterRazor policyBoot up ESXi serverRazor nodeShow ESXibeing installed
  • Templates cancurrently be ”linux_deploy” or ”vmware_hypervisor”
  • Show:FacterRazor policyBoot up ESXi serverRazor nodeShow ESXibeing installed
  • vBrownbag 2013 June 4th - Puppet and Razor - Jonas Rosland

    1. 1. 1© Copyright 2012 EMC Corporation. All rights reserved.Automated OS & AppDeploymentUsing Puppet and RazorJonas RoslandSoftware-Defined Specialist@virtualswede
    2. 2. 2© Copyright 2012 EMC Corporation. All rights reserved.
    3. 3. 3© Copyright 2012 EMC Corporation. All rights reserved.
    4. 4. Project ManagerIs a person who thinks nine womencan deliver a baby in one month
    5. 5. 5© Copyright 2012 EMC Corporation. All rights reserved.
    6. 6. 6© Copyright 2012 EMC Corporation. All rights reserved.
    7. 7. 7© Copyright 2012 EMC Corporation. All rights reserved.
    8. 8. 12© Copyright 2012 EMC Corporation. All rights reserved.Puppetize everything!
    9. 9. 13© Copyright 2012 EMC Corporation. All rights reserved.What is Puppet?IT automation softwareHelps system administrators manageinfrastructure throughout its lifecycleProvisioning and configurationPatch management and complianceHighly scalable
    10. 10. 14© Copyright 2012 EMC Corporation. All rights reserved.How scalable?Google manages more than 50000 systemsZynga scaled from 0 to 10000 servers in 2monthsI am managing tens of machines!
    11. 11. 15© Copyright 2012 EMC Corporation. All rights reserved.Why is Puppet cool?Centralized, Scalable configuration management forserver farmsAbstracted from underlying OS (to a point)Configurations can be stored in a version controlsystem (like Git) for historical change trackingAutomated configuration of individual machinesbased on hardware/software configurationAuditing of configuration of individual machines
    12. 12. 16© Copyright 2012 EMC Corporation. All rights reserved.Where Puppet helpsBridge the gap between sysadmins and app/devteamsUsing a common structure to create Dev, QA andProduction environmentsStandardizing applications and their configurationsResult: Consistent platforms throughout withminimal pain
    13. 13. 17© Copyright 2012 EMC Corporation. All rights reserved.Puppet gives youSoftware-Defined Infrastructure
    14. 14. 18© Copyright 2012 EMC Corporation. All rights reserved.Example of a Puppet manifestnode /blogserver/ {include ntpinclude wordpressfirewall { 100 allow http:proto => tcp,dport => 80,action => accept,}}
    15. 15. 19© Copyright 2012 EMC Corporation. All rights reserved.Puppet Architecture
    16. 16. 20© Copyright 2012 EMC Corporation. All rights reserved.
    17. 17. 21© Copyright 2012 EMC Corporation. All rights reserved.
    18. 18. 22© Copyright 2012 EMC Corporation. All rights reserved.
    19. 19. 24© Copyright 2012 EMC Corporation. All rights reserved.
    20. 20. 25© Copyright 2012 EMC Corporation. All rights reserved.So what’s Razor?Cloud provisioning toolOperating Systems AND HypervisorsPhysical AND virtualEvent-driven instead of user-driven
    21. 21. 26© Copyright 2012 EMC Corporation. All rights reserved.Why not just use templates?They get old fastPre-packages bits are harder to maintainNo easy upgrade to next distro version
    22. 22. 27© Copyright 2012 EMC Corporation. All rights reserved.So how does it work?
    23. 23. 28© Copyright 2012 EMC Corporation. All rights reserved.Auto-Discovered Real-Time InventoryDataBoots a Micro-KernelPrimarily using facterFor every hardware nodeEliminating inefficient, error-prone manualprocessesFull insight into the latest, up-to-date statusof your hardware inventory
    24. 24. 29© Copyright 2012 EMC Corporation. All rights reserved.Dynamic Image SelectionSelects the correct operating system imageBased on auto-discovered, real-timeinventory dataNo manual intervention needed
    25. 25. 30© Copyright 2012 EMC Corporation. All rights reserved.Model-Based ProvisioningModels the desired state of each hardwarenode and its operating systemAutomatically tracks provisioning progresstoward this stateFull control over a node’s boot sequence anda complete log of its lifecycle
    26. 26. 31© Copyright 2012 EMC Corporation. All rights reserved.Open APIs and Plug-in ArchitectureRESTful open APIsFull programmatic control of the rules andmodels that govern operating system imageselection and hardware provisioningEnables the Puppet community to collaborateand share plug-ins to support any operatingsystem and any boot sequence
    27. 27. 32© Copyright 2012 EMC Corporation. All rights reserved.Metal-to-Cloud Application LifecycleManagementNo need for siloed management tools!
    28. 28. 33© Copyright 2012 EMC Corporation. All rights reserved.Puppet + Razor = Good!
    29. 29. 34© Copyright 2012 EMC Corporation. All rights reserved.Razor installation using Puppetnode razor {class { sudo:config_file_replace => false,}include razor}
    30. 30. 35© Copyright 2012 EMC Corporation. All rights reserved.Add a brokerrz_broker { puppet_broker:ensure => present,plugin => puppet,metadata => {broker_version => 2.7.18,server => puppet.purevirtual.lab,}}
    31. 31. 36© Copyright 2012 EMC Corporation. All rights reserved.Add an image to deployrz_image { "ubuntu_precise_image":ensure => present,type => os,version => 12.04.1,source =>"http://ftp.sunet.se/pub/os/Linux/distributions/ubuntu/ubuntu-cd/12.04.1/ubuntu-12.04.1-server-amd64.iso",}
    32. 32. 37© Copyright 2012 EMC Corporation. All rights reserved.Add a model for deploymentrz_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,}
    33. 33. 38© Copyright 2012 EMC Corporation. All rights reserved.Finally, create a policy to tie it alltogetherrz_policy { ubuntu_precise_policy:ensure => present,broker => puppet_broker,model => install_ubuntu_precise,enabled => true,tags => [memsize_1GiB],template => linux_deploy,maximum => 10,}
    34. 34. 39© Copyright 2012 EMC Corporation. All rights reserved.DEMOTIME!
    35. 35. 40© Copyright 2012 EMC Corporation. All rights reserved.On the agendaVMworld 2013– San Francisco– AND– BarcelonaPuppetConf maybe?Meet me online?
    36. 36. 41© Copyright 2012 EMC Corporation. All rights reserved.
    37. 37. 42© Copyright 2012 EMC Corporation. All rights reserved.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

    ×