Ask Your Question

Getting started with puppetdb.

asked 2014-10-26 22:54:43 -0600

jimsonpai gravatar image

updated 2014-10-28 18:07:52 -0600

Hi All,
I'm trying to install puppetdb to setup naglios. I am trying to following the guide shown below. I'm in step 2.

In step too I am told to "If you are installing PuppetDB on the same server as your puppet master, assign the puppetdb and puppetdb::master::config classes to it."

^ what does that mean? what is "it"? manifest/puppetconfig.pp? I'm confuse.


node default {
        package { 'apache2':
                ensure => installed

        service { 'apache2':
                ensure => true,
                enable => true,
                require => Package['apache2']

include puppetdb
include puppetdb::master::config
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-10-27 09:24:04 -0600

llowder gravatar image

In this case, "it" would be your puppet master.

If you are using site.pp for your classification, in the node def for your master you need to add include puppetdb and include puppetdb::master::config.

If you are using hiera_include() then add puppetdb and puppetdb::master::config to the key you use, typically classes

If you are using an ENC such as the Dashboard or Foreman, you need to make sure the two classes are assigned to your master. How you do that will depend on what ENC you use.

edit flag offensive delete link more


Thanks. I am using site.pp for my classicifaction. Can you tell me where do I put "include puppetdb" and "include puppetdb::master::config"? I am new to puppet so I am unsure how to correctly config site.pp. My site.pp is shown in my original post's update1. Thanks.

jimsonpai gravatar imagejimsonpai ( 2014-10-28 18:04:57 -0600 )edit

answered 2014-10-29 07:23:34 -0600

rnelson0 gravatar image

Here's an example node definition:

node /puppetmaster/ {
  include puppetdb
  include puppetdb::master::config

  # The rest of your puppetmaster node definition
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-10-26 22:54:43 -0600

Seen: 157 times

Last updated: Oct 29 '14