DevOps Monkey Goodness

Finish Puppet With PuppetDB, Enable Inventory and Hiera – How to Series 4

In this part we’ll complete our Puppet master installation by adding PuppetDB, Heira and ensure are agents are collecting inventory information

Part 1 – How to install puppet open source on virtual box

Part 2 – How To install and Configure Puppet Dashboard 

Part 3 – How to install and configure Puppet Open Source Agent on Windows

How to Install Heira

Hiera is a key/value lookup tool for configuration data, built to make Puppet better and let you set node-specific data without repeating yourself. 

For more information see: http://docs.puppetlabs.com/hiera/1/

  1. From a terminal session (root user)
    # puppet resource package hiera ensure=installed 

  2.  That’s it!

How to Install and Configure PuppetDB 
 

PuppetDB collects data generated by Puppet. It enables advanced Puppet features like the inventory service and exported resources, and can be the foundation for other applications that use Puppet’s data.

  1.  Run the following:

    # puppet resource package puppetdb ensure=latest
    # puppet resource service puppetdb ensure=running enable=true
    # puppet resource package puppetdb-terminus ensure=latest
     

  2. Create puppetdb.conf:
    # nano /etc/puppet/puppetdb.conf 
  3. Update with the following details (change server to match your puppet host name)
    [main]
    server = puppet.local
    port = 8081
  4. To enable PuppetDB for the inventory service and saved catalogs/exported resources, add the following settings to the [master] block of puppet.conf (or edit them if already present):
    # nano /etc/puppet/puppet.conf 
  5. Update/add the following: 
    [master]
    reports = store, http, puppetdb storeconfigs = true storeconfigs_backend = puppetdb
  6. Create routes.yaml
    # nano /etc/puppet/routes.yaml 
  7. Add the following:
     
    ---
    master:
      facts:
        terminus: puppetdb
        cache: yaml

No Comments Yet

Leave a Reply