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


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

Installs/Configures chef-provisioning-aws-helper

cookbook 'chef-provisioning-aws-helper', '~> 0.2.0', :supermarket
cookbook 'chef-provisioning-aws-helper', '~> 0.2.0'
knife supermarket install chef-provisioning-aws-helper
knife supermarket download chef-provisioning-aws-helper
Quality 43%


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


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-aws']['chef_repo'] = Chef::Config[:chef_repo_path]
# default['chef-provisioning-aws']['key_path'] = File.join(Chef::Config[:chef_repo_path], 'keys')
default['chef-provisioning-aws']['vendor_cookbooks_path'] = ::File.join(Chef::Config[:chef_repo_path], 'vendor')

# machine details
default['chef-provisioning-aws']['region'] = 'us-west-2'
default['chef-provisioning-aws']['keypair_name'] = "#{ENV['USER']}@chef-provisioning-aws"
default['chef-provisioning-aws']['ssh_username'] = 'ec2-user'
default['chef-provisioning-aws']['use_private_ip_for_ssh'] = false

# bootstrap_options
default['chef-provisioning-aws']['instance_type'] = 't2.medium'
default['chef-provisioning-aws']['ebs_optimized'] = false
default['chef-provisioning-aws']['image_id'] = 'ami-4dbf9e7d' # RHEL 7.1 2015-02
default['chef-provisioning-aws']['subnet_id'] = 'subnet-mysubnet'
default['chef-provisioning-aws']['associate_public_ip_address'] = true
default['chef-provisioning-aws']['root_block_device'] = '/dev/sda1' # standard for most VMs, sometimes it is '/dev/sda'
default['chef-provisioning-aws']['root_block_device_size'] = 12 # in GB
default['chef-provisioning-aws']['root_block_device_type'] = 'gp2' # burstable SSD type

# tags: use a k,v format like { tagname: 'value', taname2: 'value2' }
default['chef-provisioning-aws']['aws_tags'] = {}

# convergence options for chef installation
default['chef-provisioning-aws']['install_sh_arguments'] = nil
default['chef-provisioning-aws']['bootstrap_proxy'] = nil
default['chef-provisioning-aws']['chef_config'] = nil
default['chef-provisioning-aws']['chef_version'] = nil

# override outdated values in the lvm cookbook
default['lvm']['di-ruby-lvm-attrib']['version'] = '0.0.20'

Then simply use it in your recipe:

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

machine "mario" do
  recipe 'mario::default'
  machine_options aws_options("")

Advanced usage

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

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

machine "mario" do
  recipe 'mario::default'
  machine_options aws_options("", config: {
    ssh_username: 'ubuntu',
    instance_type: 'm3.2xlarge',
    ebs_optimized: true,
    image_id: 'ami-13f4fb23',
    install_sh_arguments: '-P chefdk',
    root_block_device_size: 20,
    root_block_device_type: 'io1',
    aws_tags: { 'X-Project' => 'Chef_Secret' }

Ephemeral Mount resource

This cookbook also provides a resource to automatically LVM format, stripe and mount all of the ephemeral disks attached to the instance.

Use like so:
ec2_ephemeral_mount 'My Databass' do
mount_point '/var/lib/mydatabass'

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, and your repo must contain a file

Foodcritic Metric

0.2.0 passed this metric

No Binaries Metric

0.2.0 passed this metric

Supported Platforms Metric

0.2.0 failed this metric

chef-provisioning-aws-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, and your repo must contain a file

Version Tag Metric

0.2.0 passed this metric