Ask Your Question
0

determine effective configuration of agent or master

asked 2014-08-08 06:46:32 -0600

kronn gravatar image

I recreated my foreman-dashboard because I accidently it's database. The whole database. Recovering from that was rahter easy, as I'm not using it as ENC. Now the foreman-dashboard is working again, same URL, same Users. I can see all the facts for my nodes as those are imported from puppet.

Since that incident, puppet is not sending reports to foreman anymore. I suspect something other than a changed foreman, because even an error "could not sent to foreman" would be okay for me.

sudo puppet config print report says "store".

But /etc/puppet/puppet.conf says "foreman,puppetdb".

How can I determine the effective configuration of the master (or agent) process?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-08-08 10:30:38 -0600

binford2k gravatar image

updated 2014-08-08 10:32:24 -0600

So what's going on here is the fact that we've got two confusingly similarly named configuration options. The reports option is for the agent and is a boolean, send reports or not. The reports option is for the master and actually defines the list of report processors.

https://docs.puppetlabs.com/references/latest/configuration.html#report https://docs.puppetlabs.com/references/latest/configuration.html#reports

The more reliable way to retrieve options is to execute Puppet in the context you want to get the variable. For example:

  • sudo puppet agent --configprint report
  • sudo puppet master --configprint reports
edit flag offensive delete link more

Comments

Thanks, now I know that both agent and master are configured as they should be. One less thing to worry about.

kronn gravatar imagekronn ( 2014-08-10 12:15:00 -0600 )edit

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

Stats

Asked: 2014-08-08 06:14:57 -0600

Seen: 70 times

Last updated: Aug 08 '14