cookbook 'chef-provisioning-vagrant-helper', '~> 0.2.0', :supermarket
chef-provisioning-vagrant-helper (1) Versions 0.2.0 Follow1
Installs/Configures chef-provisioning-vagrant-helper
cookbook 'chef-provisioning-vagrant-helper', '~> 0.2.0'
knife supermarket install chef-provisioning-vagrant-helper
knife supermarket download chef-provisioning-vagrant-helper
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
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
Publish Metric
0.2.0 passed this metric
Supported Platforms Metric
0.2.0 failed this metric
chef-provisioning-vagrant-helper should declare what platform(s) it supports.
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 passed this metric
0.2.0 failed this 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
Publish Metric
0.2.0 passed this metric
Supported Platforms Metric
0.2.0 failed this metric
chef-provisioning-vagrant-helper should declare what platform(s) it supports.
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 passed this metric
0.2.0 passed this metric
0.2.0 passed this metric
Publish Metric
0.2.0 passed this metric
Supported Platforms Metric
0.2.0 failed this metric
chef-provisioning-vagrant-helper should declare what platform(s) it supports.
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 passed this metric
0.2.0 passed this metric
0.2.0 failed this metric
chef-provisioning-vagrant-helper should declare what platform(s) it supports.
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 passed this metric
0.2.0 failed this metric
0.2.0 passed this metric