Ask Your Question

Is there any way to access the puppet configuration version from a manifest?

asked 2016-03-02 11:39:38 -0600

JohnsonEarls gravatar image

I find myself needing a way to determine lines of a file that were updated (via augeas) during this puppet run.

Since each puppet run has a "configuration version" associated with it, I thought that would be the easiest thing to use, but in a quick search of the documentation, I can find no way to access this "configuration version" from within a Puppet manifest.

Does such a thing exist, or is the "configuration version" only used as a logging artifact?

- Johnson

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-05-16 08:17:38 -0600

Configuration version is only a logging artifact indeed. You can modify it to map to your git commit hash, or any other data you see fit, but Puppet manifests don't do anything with it natively.

edit flag offensive delete link more

answered 2016-05-19 03:46:00 -0600

manojsamtani gravatar image

Try using below variables to access puppet configuration variables

${settings::reportdir} ${settings::clientbucketdir} etc..

edit flag offensive delete link more


The "configuration version" is not a configuration variable, it's an artifact of a catalog generation.

JohnsonEarls gravatar imageJohnsonEarls ( 2016-05-19 04:58:48 -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


Asked: 2016-03-02 11:39:38 -0600

Seen: 168 times

Last updated: May 19 '16