Skip to content

Instantly share code, notes, and snippets.

@atomic-penguin
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save atomic-penguin/8867489 to your computer and use it in GitHub Desktop.

Select an option

Save atomic-penguin/8867489 to your computer and use it in GitHub Desktop.
Berksfile use case examples
# 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'
# 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