Compile catalog against tagged version of a git repo?

36 views
Skip to first unread message

Schofield

unread,
Nov 3, 2013, 7:59:18 PM11/3/13
to puppet...@googlegroups.com
I'm wondering if there is any feature that will allow puppet to compile a catalog against a specific tag of a git repo?

Jason Antman

unread,
Nov 4, 2013, 8:09:44 AM11/4/13
to puppet...@googlegroups.com
Well, yes and no. There's no feature that directly supports "compile
using this git tag/branch/hash", because puppet doesn't "know" about
git, it just operates on a directory (modulepath). What most people do
is check out the git tag/brach/hash to a directory on the puppetmaster,
and use that as an environment (see
http://docs.puppetlabs.com/guides/environment.html and
http://puppetlabs.com/blog/git-workflow-and-puppet-environments). If you
need something more automated, you can always use a git hook to create
the directory and do the checkout on your puppetmaster. Then you'll just
specify the correct environment name when you run your agent.

I'm in the process of doing a puppet3 rollout that makes heavy use of
this process. I'm planning on writing a series of blog posts detailing
it, but haven't really gotten started yet. If you need some more
specific instructions, I can try to provide some.

-jantman

On 11/03/2013 07:59 PM, Schofield wrote:
> I'm wondering if there is any feature that will allow puppet to
> compile a catalog against a specific tag of a git repo?
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/2e941022-133c-4008-8b23-52a0492c9bf6%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages