Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

chef-provisioning-vagrant-helper (1) Versions 0.2.0

Installs/Configures chef-provisioning-vagrant-helper

Policyfile
Berkshelf
Knife
cookbook 'chef-provisioning-vagrant-helper', '~> 0.2.0', :supermarket
cookbook 'chef-provisioning-vagrant-helper', '~> 0.2.0'
knife supermarket install chef-provisioning-vagrant-helper
knife supermarket download chef-provisioning-vagrant-helper
README
Dependencies
Quality 33%

chef-provisioning-vagrant-helper

This cookbook provides helper recipes and methods for using chef-provisioning-vagrant

Usage

To establish identical settings for all of the machines in your cluster, set the following attributes in your wrapper cookbook:

# chef-zero attributes
default['chef-provisioning-vagrant']['chef_repo'] = Chef::Config[:chef_repo_path]
default['chef-provisioning-vagrant']['vagrants_dir'] = ::File.join(Chef::Config[:chef_repo_path], 'vagrants')
default['chef-provisioning-vagrant']['vendor_cookbooks_path'] = ::File.join(Chef::Config[:chef_repo_path], 'vendor')

# machine details
default['chef-provisioning-vagrant']['vbox']['box'] = 'opscode-ubuntu-14.04'
default['chef-provisioning-vagrant']['vbox']['box_url'] = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-14.04_chef-provisionerless.box'
default['chef-provisioning-vagrant']['vbox']['ram'] = 512
default['chef-provisioning-vagrant']['vbox']['cpus'] = 1

# private networking interfaces
default['chef-provisioning-vagrant']['vbox']['private_networks']['default'] = 'dhcp'

Then simply use it in your recipe:

include_recipe 'chef-provisioning-vagrant-helper::default'

machine "mario" do
  recipe 'mario::default'
  machine_options vagrant_options("mario.example.com")
end

Advanced usage

You can override the settings on a per-machine basis like so:

include_recipe 'chef-provisioning-vagrant-helper::default'

machine "mario" do
  recipe 'mario::default'
  machine_options vagrant_options("mario.example.com", config: {
      box: 'opscode-ubuntu-14.04',
      ram: 1024,
      cpus: 2,
      private_networks: {
        default: 'dhcp',
        cluster_ip: '33.33.33.10'
      }
    })
end

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

postgresql-cluster Applicable Versions
riak-cluster Applicable Versions

Collaborator Number Metric
            

0.2.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.2.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.2.0 passed this metric

No Binaries Metric
            

0.2.0 passed this metric

Testing File Metric
            

0.2.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.2.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number