RubyGems Navigation menu

chef-berksfile-env 1.0.0

Chef-Berksfile-Env ================== A Chef plugin which allows you to lock down your Chef Environment with a Berksfile. Installation ------------ /opt/chef/embedded/bin/gem install chef-berksfile-env Usage ----- In your chef repo create a Berksfile next to your Chef environment file like this, chef-repo/environments/[ENV_NAME]/Berksfile This is the default location that will used by the plugin. We have to put the berkshelf in its own directory since [multiple berksfiles can't exist in the same directory](https://github.com/berkshelf/berkshelf/issues/1247). The berksfile should include any cookbooks that your nodes or roles explicitly mention for that environment, source "https://supermarket.getchef.com" cookbook "java" cookbook "yum", "~> 2.0" ... Next we need to generate our Berksfile's lock file, berks install Your environment file must by in `.rb` format and look like this, require 'chef-berksfile-env' # This must be define before we do load_berksfile name "my_env" # Load Berksfile locked dependencies as my environments version contraints load_berksfile ... Now our environment will only use the locked versions of the cookbooks generated by our Berksfile. Additionally Berkshelf has also locked all transitive dependencies for us as well. Upgrading to the latest dependecies is now as simple as, berks install Our Berksfile also provides an easy way to ensure all the cookbooks and their versions that our environment requires are uploaded to our chef-server, berks upload

Gemfile:
=

install:
=

Versions:

  1. 1.5.0 - May 04, 2018 (9.5 KB)
  2. 1.4.0 - September 27, 2016 (9.5 KB)
  3. 1.3.0 - November 24, 2015 (9.5 KB)
  4. 1.2.0 - September 15, 2015 (9.5 KB)
  5. 1.1.0 - April 07, 2015 (9.5 KB)
  6. 1.0.0 - September 25, 2014 (7.5 KB)
Show all versions (6 total)

Runtime Dependencies (2):

berkshelf ~> 3.0
chef ~> 11.0

Development Dependencies (3):

bundler ~> 1.6
octokit ~> 3.0
rake ~> 0.9

Owners:

Authors:

  • Bryan Baugher

SHA 256 checksum:

=

Total downloads 15,700

For this version 2,770

Version Released:

License:

MIT

Required Ruby Version: >= 0

Links: