1 / 7

Puppet for messaging lessons learnt

Puppet for messaging lessons learnt. Robert Ve žnaver IT/SDC /MI 10/3/2014. Puppet installation at CERN. environment. hostgroup. environment. module. subhostgroup. subhostgroup. module. Puppet syntax checking. puppet parser validate foo.pp puppet-lint foo.pp.

harvey
Télécharger la présentation

Puppet for messaging lessons learnt

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Puppet for messaginglessons learnt Robert Vežnaver IT/SDC/MI 10/3/2014

  2. Puppet installation at CERN environment hostgroup environment module subhostgroup subhostgroup module Puppet for messaging - lessons learnt

  3. Puppet syntax checking puppet parser validate foo.pp puppet-lint foo.pp Puppet for messaging - lessons learnt

  4. Hierarchical Hiera data --- #host.yaml var_global:&defaults val1: 1 val2: 2 var_local: <<: *defaults val1: 0 --- #group.yaml var_global: val1: 1 val2: 2 --- #host.yaml(+wrapper) vars: - var_global Puppet for messaging - lessons learnt

  5. Is it a module, class, or type? • module should be a service • classes are singletons • defined types are repeatable chunks • composed of other resources • must access independent resources Puppet for messaging - lessons learnt

  6. Create resource from Hiera --- #host.yaml foo: instance1: http_port: '8080' https_port: '8443' instance2: http_port: '9080' https_port: '9443’ host.pp: $foo = hiera(’foo', []) create_resources('tomcat::instance', $foo) Puppet for messaging - lessons learnt

  7. AI tools ai-pdbhostgroup<hostgroup> ai-dump <host> --facts <fact1,fact2,factn> ai-hiera -n <host> ’<hiera_variable>' Puppet for messaging - lessons learnt

More Related