Created
June 28, 2012 03:01
-
-
Save justintime/3008575 to your computer and use it in GitHub Desktop.
Using Git Submodules with Dynamic Puppet Environments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puppet agent --test --environment mybrokenbranch --noop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout master | |
git branch -d mybrokenbranch | |
git push origin :mybrokenbranch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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