Ask Your Question

Display module versions

asked 2014-10-22 06:57:01 -0600

mf gravatar image


Is it possible to see which version of a puppet module that was run on the agent? We have a Modulefile in all of our modules and use librarian-puppet to deploy between environments. Would be nice if the module version was included in the log.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-10-23 15:20:11 -0600

cbarbour gravatar image

Module versions are not part of the catalog sent to the client. However, Puppet does provide a means to stamp a version number into the catalog.

The normal approach here is to explicitly version all of your modules in your Puppetfile, and use the configversion parameter to include the GIT REF of your current environment's control_repository as the catalog version. With this approach, you can backreference the catalog version to a specific Puppetfile in a specific commit, and determine the modules that produced the catalog by the Puppetfile.

edit flag offensive delete link more

answered 2014-12-08 02:25:21 -0600

mf gravatar image

Thank you for your answer. Sorry for my very late reply, we are using that today, and it's ok for people used to git, but still you must know which modules that are included by others to know which modules in Puppetfile where run on the agent. It's also possible to run puppet with --tags to just run certain modules on the agent. Lets hope that some future version will have modul names and version included the catalog.

edit flag offensive delete link more

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: 2014-10-22 06:57:01 -0600

Seen: 117 times

Last updated: Dec 08 '14