puppetcamp verona 2013 - razor, puppet & vmware
TRANSCRIPT
PUPPET CAMP // Verona 1 marzo 2013
Razor, Puppet & VMware
Giuseppe Guglielmetti vExpert VMware VSP, VTSP, VCP4/5, vExpert 2011/2012 Kiratech srl
PUPPET CAMP // Verona 1 marzo 2013
Who I am • Senior System Engineer for Kiratech • Virtualiza7on, Storage and Backup specialist • VCP 4,5, vExpert 2011/2012 • Veeam Technical Sales Professional • Cisco Unified Compu7ng Technology Support
Specialist @gguglie
PUPPET CAMP // Verona 1 marzo 2013
Puppet & VMware • Mul7ple integra7on ways… • Razor • vCenter integra7on • vFabric Applica7on Director integra7on • Official VCSA & vShield modules (NEW!)
• ..plus the obvious one: just manage a VM as a physical node (and Facter is your friend!)
PUPPET CAMP // Verona 1 marzo 2013
Razor • Tool developed by Nick Weaver • Open source • Dynamic provisioning of • opera7ng systems • hypervisors
• for both • physical server • virtual servers
• Event driven
PUPPET CAMP // Verona 1 marzo 2013
How Razor works (1) Discovery • Single purpose: find out what a
compute node is made of • MicroKernel booted through
PXE • The MicroKernel uses Puppet’s
Facter to gather informa7on on hardware, type of server and type of virtualiza7on it is on
• Real 7me
PUPPET CAMP // Verona 1 marzo 2013
How Razor works (2) Tagging • Allows to group nodes by
applying tags • A Tag Rule apply a Tag to a node • A Tag Rule contains qualifying
rules called Matchers • Matchers use aaributes
collected during discovery to classify nodes
PUPPET CAMP // Verona 1 marzo 2013
How Razor works (3) Models • Model template: one or more files that describe
how to do something • Model Templates for installing common things
are available out of the box • Model: instance of a Model Template plus some
metadata required (like license key, password, hostname, domain…)
PUPPET CAMP // Verona 1 marzo 2013
How Razor works (4) Policy • Is a rule that applies a Model to
a Node based on matching against Tags
• Fully automa7c: • a Node checks-‐in • Razor checks the Policies looking
for a match • when a match is found it applies
the Policy and binds the Model
PUPPET CAMP // Verona 1 marzo 2013
How Razor works (5) Broker plugin (1) • A Broker is an external system that will configure
a Node for its true purpose • Ader comple7ng the provisioning of OS/
Hypervisor, a Broker comes into play for managing configura7on
• The standard broker is Puppet Master • The Puppet Broker Plugin enables both agent
handoff (Linux) and proxy handoff (vSphere ESXi)
PUPPET CAMP // Verona 1 marzo 2013
How Razor works (6) Broker plugin (2) • Razor delivers all the
metadata including tags to Puppet
• Puppet can use tags passed by Razor to make decisions on configura7on • e.g.: link similarly tagged ESXi
nodes into the same cluster
PUPPET CAMP // Verona 1 marzo 2013
vCenter integration
• Puppet subcommand node_vmware • Puppet Enterprise only • List VM • Create VM from template • Start/stop VM • Destroy VM • Automa7cally install Puppet Agent
VCSA & vShield Modules • Open source Puppet modules • Developed by VMware and PuppetLabs • Management for the vCenter Server Appliance (VCSA) • Ini7aliza7on • Datacenter and Cluster configura7on • ESXi Host
• Management for the vShield Manager • Ini7aliza7on • Associa7on to vCenter • vShield Edge Deployment • vShield Edge Configura7on
PUPPET CAMP // Verona 1 marzo 2013
vFabric Application Director
• vFabric Applica7on Director is a cloud-‐enabled applica7on provisioning and maintenance solu7on
• simplifies how to create and standardize applica7on deployment topologies across cloud services
• Create complete deployment blueprint
PUPPET CAMP // Verona 1 marzo 2013
AppDirector integration
• The Puppet integra7on solu7on enables • deploy applica7ons via Puppet manifests • deploy vFabric Applica7on Director blueprints
using exis7ng Puppet modules • Leverages vFabric Applica7on Director
management console to • configure Puppet classes • Use Puppet modules as vFabric Applica7on
Director blueprints
PUPPET CAMP // Verona 1 marzo 2013
Resources • hap://nickapedia.com/2012/05/21/lex-‐
parsimoniae-‐cloud-‐provisioning-‐with-‐a-‐razor/ • haps://puppetlabs.com/solu7ons/next-‐genera7on-‐
provisioning/ • hap://puppetlabs.com/solu7ons/vmware/ • hap://www.vmware.com/products/applica7on-‐
plaiorm/vfabric-‐applica7on-‐director/overview.html • hap://www.youtube.com/watch?v=X9QB8FA_hug • hap://nickapedia.com/2013/02/27/vmware-‐
puppet-‐one-‐more-‐step-‐forward/
PUPPET CAMP // Verona 1 marzo 2013
Thank you !