Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

puppet: "applying configuration version ", what does it refer to?

Tags:

puppet

When I run

sudo puppet agent -t

after a long phase of catalog loading, I get a message:

info: Applying configuration version '1403590182'

What is that number 1403590182 referring to?

In fact I have noticed that if I run twice in a row sudo puppet agent -t, I get different configuration version numbers even if the modules have not changed!

How can I determine which version of each module is being applied to the node?

like image 313
Pierluigi Vernetto Avatar asked Nov 11 '22 05:11

Pierluigi Vernetto


1 Answers

from the documentation config_version

How to determine the configuration version. By default, it will be the time that the configuration is parsed, but you can provide a shell script to override how the version is determined. The output of this script will be added to every log message in the reports, allowing you to correlate changes on your hosts to the source version on the server.

Setting a global value for config_version in puppet.conf is not allowed (but it can be overridden from the commandline). Please set a per-environment value in environment.conf instead. For more info, see https://puppet.com/docs/puppet/latest/environments_about.html

The time is represented as a unix time stamp as such yours indicates "06/24/2014 @ 6:09am" (and i just realised how old this Q was)

like image 93
balder Avatar answered Jan 04 '23 01:01

balder