Ask Your Question
0

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

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

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?

Thanks,
- Johnson

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

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

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
0

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

manojsamtani gravatar image

Try using below variables to access puppet configuration variables

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

edit flag offensive delete link more

Comments

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 -0500 )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: 2016-03-02 11:39:38 -0500

Seen: 165 times

Last updated: May 19 '16