razor & puppet: the perfect marriage?

28
 Razor and Puppet: The perfect marriage? Razor and Puppet: The perfect marriage ? Puppetcamp Ghent – February, 1 – 2013 Johan De Wit – Linux & Open Source Consultant Bert Deferme – Linux & Open Source Consultant

Upload: puppet-labs

Post on 07-May-2015

2.323 views

Category:

Technology


0 download

DESCRIPTION

Johan De Wit and Bert Deferme's presentation "Razor and Puppet: the perfect marriage?" at Puppet Camp Ghent 2013. Both speakers are Linux & Open Source Consultants.

TRANSCRIPT

Page 1: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

Razor and Puppet: The perfect marriage ?

Puppetcamp Ghent – February, 1 – 2013Johan De Wit – Linux & Open Source ConsultantBert Deferme – Linux & Open Source Consultant

Page 2: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

Page 3: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

What is Razor?

Razor =

A software­tool for rapid provisioning of:

● Operating System(s)● Hypervisor(s)

On both physical and virtual servers.

Page 4: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

A bit of Razor history

● Originally developed by EMC

Page 5: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

A bit of Razor history

● Originally developed by EMC● Developed with these key features in mind:

Page 6: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

A bit of Razor history

● Originally developed by EMC● Developed with these key features in mind:

●  Adding a new OS or Hypervisor should be simple

Page 7: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

A bit of Razor history

● Originally developed by EMC● Developed with these key features in mind:

●  Adding a new OS or Hypervisor should be simple●  Must be event­driven

Page 8: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

A bit of Razor history

● Originally developed by EMC● Developed with these key features in mind:

●  Adding a new OS or Hypervisor should be simple●  Must be event­driven●  Should have powerful discovery

Page 9: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

A bit of Razor history

● Originally developed by EMC● Developed with these key features in mind:

●  Adding a new OS or Hypervisor should be simple●  Must be event­driven●  Should have powerful discovery●  It should scale well

Page 10: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

A bit of Razor history

● Originally developed by EMC● Developed with these key features in mind:

●  Adding a new OS or Hypervisor should be simple●  Must be event­driven●  Should have powerful discovery●  It should scale well●  It should focus on the task at hand, not try to do everything.

Page 11: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

A bit of Razor history

● Originally developed by EMC● Developed with these key features in mind:

●  Adding a new OS or Hypervisor should be simple●  Must be event­driven●  Should have powerful discovery●  It should scale well●  It should focus on the task at hand, not try to do everything.●  It should easily integrate with #devops tools

Page 12: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

A bit of Razor history

● Originally developed by EMC● Developed with these key features in mind:

●  Adding a new OS or Hypervisor should be simple●  Must be event­driven●  Should have powerful discovery●  It should scale well●  It should focus on the task at hand, not try to do everything.●  It should easily integrate with #devops tools●  The control structure must support REST

Page 13: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

A bit of Razor history

● Now: Collaboration with Puppetlabs●   → Released via the Puppet Forge●   → Under the Apache License

Page 14: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

What is Razor?

Razor consists of two major components:

● The Razor Server

   (Ruby, MongoDB, Node.js)

● The Razor Microkernel

  (~20MB Linux Kernel, Facter, MCollective)

Page 15: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

What is Razor?

Razor provides:● Auto­discovered real­time inventory data

Page 16: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

What is Razor?

Razor provides:● Auto­discovered real­time inventory data● Dynamic image selection

Page 17: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

What is Razor?

Razor provides:● Auto­discovered real­time inventory data● Dynamic image selection● Model­based provisioning

Page 18: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

What is Razor?

Razor provides:● Auto­discovered real­time inventory data● Dynamic image selection● Model­based provisioning● Open APIs and plug­in architecture

Page 19: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

What is Razor?

Razor provides:● Auto­discovered real­time inventory data● Dynamic image selection● Model­based provisioning● Open APIs and plug­in architecture● “Metal­to­Cloud” application lifecycle management

Page 20: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

Razor DEMO

RAZOR WORKFLOW IN SHORT:

● Discovery (Tags, Matcher Rules)

● Models (Defining OS Templates, ...)

● Policies (Rules that apply Models to Nodes based on Discovery)

● Broker (Configuration Management)

Page 21: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

Razor DEMO

DISCOVERY

● PXE boot

● Microkernel

● Facter

● Communication

Page 22: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

Razor DEMO

MODELS

● Operating System templates

   CentOS/RHEL6 – Ubuntu Precise/Oneric – openSUSE – Debian   VMWare ESXi 5 

● Kickstart / preseed / ...

● Variables (Hostname, domainname, password, ...)

Page 23: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

Razor DEMO

TAGS and MATCHER RULES

● Use existing default tags

● Possibility to create custom tags using “Matcher Rules) 

Page 24: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

Razor DEMO

DEFINING A POLICY

● Like a firewall­rule (behaves alike)

● Apply a certain model based on certain (custom) tags

Page 25: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

Razor DEMO

ENABLE A POLICY (AUTO­DEPLOY) / DELIVERY TO “BROKER”

● Wait for server(s) to be installed

● Drink coffee :­)

● When deployed, node gets delivered to the “Broker” (Chef,puppet,...) for future management.

Page 26: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

Razor in the future

Short­term roadmap:

● Real OS Packages (End of Feb)● Improve postgresql data store support● Resolve scaling problems when under heavy load● RELIABILITY

Page 27: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

Razor in the future

Long­term roadmap:

● Support for custom facts● Easier integration of new models● Better broker implementation

Page 28: Razor & Puppet: The Perfect Marriage?

   

Razor and Puppet: The perfect marriage?

More information...

Razor:

● https://github.com/puppetlabs/Razor

Open­Future:

● http://www.open­future.be● http://twitter.com/Openfuture_be● Commercial contact: Ann Vanderheyden – ann@open­future.be● Technical contact: technical@open­future.be

Open­Future is always hiring...