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

container (5) Versions 0.0.1

Installs lxc and offers containers as resource

Policyfile
Berkshelf
Knife
cookbook 'container', '= 0.0.1', :supermarket
cookbook 'container', '= 0.0.1'
knife supermarket install container
knife supermarket download container
README
Dependencies
Quality -%

LXC cookbook

Chef cookbook for managing lxc (linux containers)

Usage

This cookbook provides container resource/providers. Currently its
only tested on ubuntu 14.04. This cookbook uses native ruby bindings
for managing containers.

Following will create a ubuntu container named test-1

container 'test-1'

And following will create and start a ubuntu 10.04 container
ruby
container 'test-2' do
options(template: 'ubuntu', template_options: ['-r lucid'])
action [:create, :start]
end

Details

container resource can have following actions:
- create default
- destroy
- start
- stop

And following attributes
- container_name name attribute, default to resource name
- options a hash of action specific parameters

The options attribute can take following parameters (as hash)
- for create action:
- template: name of the template that will be used for creating the container (e.g. ubuntu, fedora, oracle etc). Default is ubuntu.
- template_options: an array containing addiotional arguments that will be passed to template (use lxc-create -t foo --help to get the list of supported options for individual templates). Default is an empty array
- block_device: The backing storage device (e.g lvm, zfs etc). Default is nil
- flags: An integer flag passed to lxc-crate (currently only LXC::LXC_CREATE_QUIET is available)

No quality metric results found