Hi Jason, For some reasons I didn't get your an email with your answer even if the option is chosen. Thanks a lot, it's very helpful. My puppet server is running a web server for foreman as well.
I'm planning to use puppet-sync to use dynamic environments, so I'll need to change your scripts a bit. Thanks for sharing them. On Friday, March 6, 2015 at 7:09:29 AM UTC-8, Weeve wrote: > > On Tue, Mar 3, 2015 at 4:18 PM, tyon <surb...@ucdavis.edu <javascript:>> > wrote: > > Is it possible to keep your central repository for Puppet modules in > > Bitbucket and sync it with your Puppet master with puppet-sync script > > (something like this one https://github.com/pdxcat/puppet-sync) > > > > I cannot find how to add your custom hooks in Bibucket. I'm curious if > it's > > possible in general or I have to maintain my own git server? > > I'm doing this currently and used > https://bitbucket.org/itjgray/bitbucket-php-deploy/src as the basis > for what I did. Our Puppet server is already running a web server for > The Foreman and a couple of custom tools, so we opted to use a web > based post-commit hook to do this. Some slight adjustments were made > to git-deploy.sh to cycle through each of the Puppet environments to > update them all when the post-commit hook requests the PHP file on the > Puppet server's web server. > > If you can't run the web server on the Puppet server, but you can run > it on a web server that can access your Puppet server, you could > adjust the git-deploy.sh to SSH into the Puppet server and fire off > the appropriate git commands. > > Bitbucket also lists the IPs that they will be coming from at > > https://confluence.atlassian.com/display/BITBUCKET/What+are+the+Bitbucket+IP+addresses+I+should+use+to+configure+my+corporate+firewall > > if you want/need to lock down who can request the URL for > deploy-sh.php > > Cheers, > -- > Jason Wever > -- 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/782e583c-126e-42f2-b404-38dbd1b64c55%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.