PuppetDB Installation
#######################################
June 23, 2014 10:25:36
I. Installation Requirements:
1. JDK 1.7 or later
2. Puppet3.5.1 or later
3. Puppet has been configured to run Puppet agent -- test. No problem.
Ii. Installation Steps
1. puppet source is configured
2. apt-get install puppetdb
3. apt-get install puppet-terminus
Iii. Configuration
1. Configure/etc/puppet. conf
Add the following content:
[Master]
Storeconfigs = true
Storeconfigs_backend = puppetdb
Reports = store, puppetdb
2. Configure/etc/puppet/puppetdb. conf
[Main]
Server = puppetdb.example.com
Port = 8081
3. Configure/etc/puppet/routes. yaml
Add the following content:
---
Master:
Facts:
Terminus: puppetdb
Cache: yaml
4. Restart Puppet Master
Service puppetmaster restart
5. Start puppetdb
Service puppetdb start
Puppetdb logs are stored in/var/log/puppetdb. log.
Vi. Test
Select any agent in the Puppet cluster for execution.
Puppet agent -- test
Check the log on the PuppetDB machine. The following two lines are displayed, indicating that the installation is complete:
13:08:41, 664 INFO [command-proc-67] [puppetdb. command] [85beb105-5f4a-4407-a5ed-cdf0d07aa1a5] [replace facts] screech.example.com
13:08:45, 993 INFO [command-proc-67] [puppetdb. command] [3a910863-6b33-4717-95d2-39edf92c8610] [replace catalog] screech.example.com
For API usage of PuppetDB, see: http://docs.puppetlabs.com/puppetdb/2.0/api/query/v4/nodes.html