build version tag?

33 views
Skip to first unread message

Jason McMahan

unread,
Feb 28, 2017, 3:30:14 PM2/28/17
to Puppet Users
Good day,
I was wondering if others could offer their thoughts, advice?

We would like to tag any new servers built with a build version, and tie that build version to all modules that were used for building it?

For instance if i built server test1 and it was tagged with build.2_28_2017_1.0 we could know it was built today with version 1.0 of the automated process.
Then we could look at version 1.0 to see it includes motd version 1.2 and sendmail version 2 or so on?

What would be great is to tag a build and then show the progress of the module updates so that we would know what module a server currently has as well as those that built it.

If any one has suggestions or thoughts please let me know.

Thank you very much

Jason

warron.french

unread,
Feb 28, 2017, 6:51:40 PM2/28/17
to puppet...@googlegroups.com
This is an excellent question Jason, I don't know the answer myself, but it looks like I just submitted a similar question.


--------------------------
Warron French


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8f8dc887-3f7c-44e4-9204-04d6f419e5a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rob Nelson

unread,
Feb 28, 2017, 10:26:01 PM2/28/17
to puppet...@googlegroups.com
If you're using a control repo, you can change the catalog version number from seconds since epoch to git commit hash, which should allow you to reconstitute all the modules in use at that time if you pin all external modules in your Puppetfile (included would already be part of that hash).
--
Rob Nelson

Jason McMahan

unread,
Mar 1, 2017, 11:45:09 AM3/1/17
to Puppet Users
I am sorry i do not quite catch your meaning Rob.
Could you please explain?

Thank you

Rob Nelson

unread,
Mar 2, 2017, 8:18:45 AM3/2/17
to puppet...@googlegroups.com
You can adjust the config_version value in puppet.conf (https://docs.puppet.com/puppet/latest/configuration.html#configversion) to spit out the git hash. See "Per-environment config_version" at http://garylarizza.com/blog/2014/08/31/r10k-plus-directory-environments/ for some detail on it and an example of using the git hash instead of epoch time.

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages