• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
vBrownbag 2013 June 4th - Puppet and Razor - Jonas Rosland
 

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

on

  • 553 views

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.

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.

Statistics

Views

Total Views
553
Views on SlideShare
541
Embed Views
12

Actions

Likes
1
Downloads
1
Comments
0

1 Embed 12

https://twitter.com 12

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • 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 vBrownbag 2013 June 4th - Puppet and Razor - Jonas Rosland Presentation Transcript

  • 1© Copyright 2012 EMC Corporation. All rights reserved.Automated OS & AppDeploymentUsing Puppet and RazorJonas RoslandSoftware-Defined Specialist@virtualswede
  • 2© Copyright 2012 EMC Corporation. All rights reserved.
  • 3© Copyright 2012 EMC Corporation. All rights reserved.
  • Project ManagerIs a person who thinks nine womencan deliver a baby in one month
  • 5© Copyright 2012 EMC Corporation. All rights reserved.
  • 6© Copyright 2012 EMC Corporation. All rights reserved.
  • 7© Copyright 2012 EMC Corporation. All rights reserved.
  • 12© Copyright 2012 EMC Corporation. All rights reserved.Puppetize everything!
  • 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
  • 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!
  • 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
  • 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
  • 17© Copyright 2012 EMC Corporation. All rights reserved.Puppet gives youSoftware-Defined Infrastructure
  • 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,}}
  • 19© Copyright 2012 EMC Corporation. All rights reserved.Puppet Architecture
  • 20© Copyright 2012 EMC Corporation. All rights reserved.
  • 21© Copyright 2012 EMC Corporation. All rights reserved.
  • 22© Copyright 2012 EMC Corporation. All rights reserved.
  • 24© Copyright 2012 EMC Corporation. All rights reserved.
  • 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
  • 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
  • 27© Copyright 2012 EMC Corporation. All rights reserved.So how does it work?
  • 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
  • 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
  • 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
  • 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
  • 32© Copyright 2012 EMC Corporation. All rights reserved.Metal-to-Cloud Application LifecycleManagementNo need for siloed management tools!
  • 33© Copyright 2012 EMC Corporation. All rights reserved.Puppet + Razor = Good!
  • 34© Copyright 2012 EMC Corporation. All rights reserved.Razor installation using Puppetnode razor {class { sudo:config_file_replace => false,}include razor}
  • 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,}}
  • 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",}
  • 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,}
  • 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,}
  • 39© Copyright 2012 EMC Corporation. All rights reserved.DEMOTIME!
  • 40© Copyright 2012 EMC Corporation. All rights reserved.On the agendaVMworld 2013– San Francisco– AND– BarcelonaPuppetConf maybe?Meet me online?
  • 41© Copyright 2012 EMC Corporation. All rights reserved.
  • 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