Ask Your Question
1

Can the Puppet Master announce its catalog version number?

asked 2015-10-12 09:32:55 -0600

erichymowitz gravatar image

updated 2015-10-13 08:54:41 -0600

I know that my puppet agents will report things like

info: Applying configuration version '1444153925'

and in the /var/lib/puppet/state/last_run_summary.yaml file

config: 1444153925

Can I get my puppet master to report this same information?

"The catalog I'm serving to the next client who asks would be version 1444153925"?

==========

Edit: I don't know how to format a comment, so I'm answering a followup question here. I hope that's OK.

$ sudo puppet config print all | grep config
async_storeconfigs = false
authconfig = /etc/puppet/namespaceauth.conf
config = /etc/puppet/puppet.conf
config_version = ""
configprint = all
configtimeout = 120
dblocation = /var/lib/puppet/state/clientconfigs.sqlite3
deviceconfig = /etc/puppet/device.conf
fileserverconfig = /etc/puppet/fileserver.conf
genconfig = false
localconfig = /var/lib/puppet/state/localconfig
rest_authconfig = /etc/puppet/auth.conf
storeconfigs = false
storeconfigs_backend = active_record
thin_storeconfigs = false
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2015-10-13 05:20:42 -0600

believe this is the config_version value you're after?

have a look at config_version

also: config_version

so if you want it to be more meaningful you could set this yourself - e.g. set config_version

else "If this setting isn’t set, the config version will be the time at which the catalog was compiled (as the number of seconds since January 1, 1970)."

e.g. as an example - 1444153925 is (on linux type:

date -d @1444153925 tue Oct 6 17:52:05 UTC 2015

  • thats the time your puppet run occured :-)
edit flag offensive delete link more

Comments

Thank you for the suggestion. But I tried this and got config_version = ""

erichymowitz gravatar imageerichymowitz ( 2015-10-13 07:27:22 -0600 )edit

Hi Eric what did you do exactly? Stuart

sahumphries gravatar imagesahumphries ( 2015-10-13 08:25:21 -0600 )edit

I put my answer in the main question, because i don't know (or if) I can format a comment.

erichymowitz gravatar imageerichymowitz ( 2015-10-13 08:52:57 -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: 2015-10-12 09:32:55 -0600

Seen: 385 times

Last updated: Oct 13 '15