Last active
August 29, 2015 13:56
-
-
Save atomic-penguin/8867489 to your computer and use it in GitHub Desktop.
Berksfile use case examples
This file contains hidden or 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
| # Default source in this mode is my chef-Server which acts as an artifact repo | |
| # for cookbooks which passed testing. | |
| # Read ~/.berkshelf/config.json for chef-server location. | |
| chef_api :config | |
| # Get list of cookbooks from metadata | |
| metadata | |
| # Pin fix for cookbook foobar | |
| cookbook 'foobar', github: 'atomic-penguin/cookbook-foobar', branch: 'COOK-42' |
This file contains hidden or 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
| # Default source in this mode is the community site. | |
| # Get cookbooks from community site | |
| site :opscode | |
| # Get list of cookbooks from metadata | |
| metadata | |
| # Pin fix for cookbook foobar | |
| cookbook 'foobar', github: 'atomic-penguin/cookbook-foobar', branch: 'COOK-42' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment