whoami
 ●
     Ger Apeldoorn
      –   Freelancer
           ●
               Puppet Consultancy
           ●
               Puppet trainer for NL via AmazicSoft
      –   AutiPlan VOF




PuppetCamp Amsterdam         Introduction to Hiera    http://www.puppetspecialist.nl
Introduction to Amsterdam
        PuppetCamp
                   Hiera
whoami
What is Hiera?
What is Hiera?

     Hierarchical Data store

                                        e
             an organizational structur
                                        d
              in which items are ranke
                 according to levels of
                      importance




PuppetCamp Amsterdam           Introduction to Hiera   http://www.puppetspecialist.nl
Why Hiera?




PuppetCamp Amsterdam    Introduction to Hiera   http://www.puppetspecialist.nl
Use case
 ●
     Smarthost setting




PuppetCamp Amsterdam   Introduction to Hiera   http://www.puppetspecialist.nl
Use case
 ●
     Smarthost setting
      –   Identical for all your hosts, except one.




PuppetCamp Amsterdam      Introduction to Hiera   http://www.puppetspecialist.nl
Use case
 ●
     Smarthost setting
      –   Identical for all your hosts, except one.
      –   Oh... and a seperate smarthost for the DMZ




PuppetCamp Amsterdam      Introduction to Hiera   http://www.puppetspecialist.nl
Hiera fixes....
    all the things!
Start small.....




PuppetCamp Amsterdam      Introduction to Hiera   http://www.puppetspecialist.nl
Expand from there...




PuppetCamp Amsterdam   Introduction to Hiera   http://www.puppetspecialist.nl
But first....




PuppetCamp Amsterdam    Introduction to Hiera   http://www.puppetspecialist.nl
Determine your Hierarchy
 ●
     Use any fact
      –   fqdn
      –   domain
      –   environment
      –   operatingsystem
      –   uptime_seconds




PuppetCamp Amsterdam    Introduction to Hiera   http://www.puppetspecialist.nl
Use case
 ●
     Smarthost setting
      –   Identical for all your hosts, except one.
      –   Oh... and a seperate smarthost for the DMZ




PuppetCamp Amsterdam      Introduction to Hiera   http://www.puppetspecialist.nl
create_resources()
      demo
Hiera &
Modules
Modules without data
 ●
     Easy to share
 ●
     Easier to maintain
 ●
     Enhanced flexibility
 ●
     Puppet 3.x → Data bindings




PuppetCamp Amsterdam   Introduction to Hiera   http://www.puppetspecialist.nl
Modules & Data
 ●
     Putting data in the modules file




PuppetCamp Amsterdam      Introduction to Hiera   http://www.puppetspecialist.nl
Modules & Data
 ●
     Parameterized classes




PuppetCamp Amsterdam      Introduction to Hiera   http://www.puppetspecialist.nl
Modules & Data
 ●
     Getting the data from Hiera




PuppetCamp Amsterdam      Introduction to Hiera   http://www.puppetspecialist.nl
Modules & Data
 ●
     Using Data bindings from Puppet 3.x




PuppetCamp Amsterdam      Introduction to Hiera   http://www.puppetspecialist.nl
Benefits of Hiera
 ●
     Dealing with exceptions
 ●
     Easily share your modules
 ●
     No more massive testing for minor
     changes in data




PuppetCamp Amsterdam       Introduction to Hiera   http://www.puppetspecialist.nl
How to start?
                                     ●
                                         Create hiera.yaml
                                     ●
                                         Restart Puppet master
                                     ●
                                         Start improving

                                         Some dutch tutorials are available
                                           on http://puppetspecialist.nl




PuppetCamp Amsterdam     Introduction to Hiera           http://www.puppetspecialist.nl
Any questions?
Thanks!



  WWW:            http://www.puppetspecialist.nl
  Mail: info@gerapeldoorn.nl
  Twitter:        @gerapeldoorn




PuppetCamp Amsterdam          Introduction to Hiera   http://www.puppetspecialist.nl
Bye!




PuppetCamp Amsterdam   Introduction to Hiera   http://www.puppetspecialist.nl

Introduction to Hiera

  • 2.
    whoami ● Ger Apeldoorn – Freelancer ● Puppet Consultancy ● Puppet trainer for NL via AmazicSoft – AutiPlan VOF PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 3.
  • 4.
  • 5.
  • 6.
    What is Hiera? Hierarchical Data store e an organizational structur d in which items are ranke according to levels of importance PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 7.
    Why Hiera? PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 8.
    Use case ● Smarthost setting PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 9.
    Use case ● Smarthost setting – Identical for all your hosts, except one. PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 10.
    Use case ● Smarthost setting – Identical for all your hosts, except one. – Oh... and a seperate smarthost for the DMZ PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 11.
    Hiera fixes.... all the things!
  • 12.
    Start small..... PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 13.
    Expand from there... PuppetCampAmsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 14.
    But first.... PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 15.
    Determine your Hierarchy ● Use any fact – fqdn – domain – environment – operatingsystem – uptime_seconds PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 16.
    Use case ● Smarthost setting – Identical for all your hosts, except one. – Oh... and a seperate smarthost for the DMZ PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 17.
  • 18.
  • 19.
    Modules without data ● Easy to share ● Easier to maintain ● Enhanced flexibility ● Puppet 3.x → Data bindings PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 20.
    Modules & Data ● Putting data in the modules file PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 21.
    Modules & Data ● Parameterized classes PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 22.
    Modules & Data ● Getting the data from Hiera PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 23.
    Modules & Data ● Using Data bindings from Puppet 3.x PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 24.
    Benefits of Hiera ● Dealing with exceptions ● Easily share your modules ● No more massive testing for minor changes in data PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 25.
    How to start? ● Create hiera.yaml ● Restart Puppet master ● Start improving Some dutch tutorials are available on http://puppetspecialist.nl PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 26.
  • 27.
    Thanks! WWW: http://www.puppetspecialist.nl Mail: info@gerapeldoorn.nl Twitter: @gerapeldoorn PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl
  • 28.
    Bye! PuppetCamp Amsterdam Introduction to Hiera http://www.puppetspecialist.nl