Re: [Puppet Users] build version tag?

2017-03-02 Thread Rob Nelson
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.


Rob Nelson
rnels...@gmail.com

On Wed, Mar 1, 2017 at 11:45 AM, Jason McMahan 
wrote:

> I am sorry i do not quite catch your meaning Rob.
> Could you please explain?
>
> Thank you
>
> On Tuesday, February 28, 2017 at 9:26:01 PM UTC-6, Rob Nelson wrote:
>>
>> 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
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/puppet-users/5232619f-fbfa-4047-84eb-3a80d5114088%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAC76iT_0Sj6TLrEaV-_jALuYZ4%2Bf_JSQy73XyKbdMaa1Ga_qpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] build version tag?

2017-03-01 Thread Jason McMahan
I am sorry i do not quite catch your meaning Rob.
Could you please explain?

Thank you

On Tuesday, February 28, 2017 at 9:26:01 PM UTC-6, Rob Nelson wrote:
>
> 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 
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5232619f-fbfa-4047-84eb-3a80d5114088%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] build version tag?

2017-02-28 Thread Rob Nelson
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

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAC76iT8WTcNjsc3Gkiu437J5%2BgzkrczrGHhed4a%3DmzShk5L9Ug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] build version tag?

2017-02-28 Thread warron.french
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


On Tue, Feb 28, 2017 at 3:30 PM, Jason McMahan 
wrote:

> 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
>
> --
> 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+unsubscr...@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.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAJdJdQnc6mx5aXAgMnzAEJEj23zave8xkuSK%3DbGW%2BW_S5tzMdg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] build version tag?

2017-02-28 Thread Jason McMahan
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

-- 
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+unsubscr...@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.