Git branching and environments is exactly what we did to solve this problem. We are actually using gitolite which allows us to lock down who can push to certain branches. So anyone can create their own branch, push that up (which creates the proper directories through git hooks) and test with --environment [branch_name] and then when they know it works great, request a merge into our permanent environments like production and testing. Once the new code is merged into its final home, the temporary branch is deleted.
The hard part is the git hooks. We actually have a script that emulates the "Github" WebHook URL functionality and a hook that "catches" that POST and does all the magic. I included the web pages that helped me get our setup working how we wanted it to. https://github.com/metajack/notify-webhook https://puppetlabs.com/blog/git-workflow-and-puppet-environments/ On Thursday, August 15, 2013 8:14:59 AM UTC-6, Sandra Schlichting wrote: > > Hello all =) > > What I would like is a way so multiple people can make changes to all > files in /etc/puppet/, but only after they have tested their changes then > they "git push" so /etc/puppet is updated. The git repo is in /etc/puppet. > When I read about environments [1] I get the impression that is only for > module development, is that correct? > > Ideally what I would like is each user to have their private environment > where they can "git pull" to. E.g. > > ssh sandra@puppet > cd /home/sandra/puppet > git pull > # edit files > exit > > ssh root@node > puppet agent --environment sandra > > exit > > > ssh sandra@puppet > cd /home/sandra/puppet > git push > > Can something like this be done? And if so, what would my > /etc/puppet/puppet.conf look like? > > > Lots of love, > > Sandra =) > > > [1]: http://docs.puppetlabs.com/guides/environment.html > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
