Skip to content

Instantly share code, notes, and snippets.

@justintime
Created June 28, 2012 03:01
Show Gist options
  • Save justintime/3008575 to your computer and use it in GitHub Desktop.
Save justintime/3008575 to your computer and use it in GitHub Desktop.
Using Git Submodules with Dynamic Puppet Environments
git clone git@git:puppet.git
cd puppet
git checkout -b mybrokenbranch
echo "this line breaks everything" >> manifests/site.pp
git commit -am 'Intentionally breaking things'
git push origin mybrokenbranch
puppet agent --test --environment mybrokenbranch --noop
git checkout master
git branch -d mybrokenbranch
git push origin :mybrokenbranch
git checkout -b firewall
git submodule add git://github.com/puppetlabs/puppetlabs-firewall.git modules/firewall
git add .gitmodules modules/firewall
git commit -m 'Adding firewall submodule'
git push origin firewall
repo puppet
RW+ = JustinEllison
R = @SysAdmins Fisheye-puppet PuppetMaster
- master testing = @SysAdmins
RW+ = @SysAdmins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment