chef-provisioning-lxc - **MAINTAINERS WANTED**
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tim Smith 4e5ed35681
Update changelog
Signed-off-by: Tim Smith <tsmith@chef.io>
2016-08-29 13:55:14 -07:00
lib/chef/provisioning Bump revision to 0.7.0 2016-02-03 13:28:35 -08:00
test remove debug codes 2015-06-12 01:35:59 -07:00
.gitignore Bump revision to 0.7.0 2016-02-03 13:28:35 -08:00
.travis.yml Make sure lxc-dev is installed in travis 2016-08-26 16:01:58 -07:00
CHANGELOG.md Update changelog 2016-08-29 13:55:14 -07:00
chef-provisioning-lxc.gemspec Allow for provisioning 2.0 2016-08-26 14:15:58 -07:00
Gemfile refactor to support unprivileged container 2015-03-05 19:11:29 -08:00
LICENSE Initial commit 2014-03-07 15:48:16 -08:00
Rakefile Bump revision to 0.7.0 2016-02-03 13:28:35 -08:00
README.md Format markdown and add badges 2016-08-26 14:15:27 -07:00

MAINTAINERS WANTED

We are actively seeking maintainers for the chef-provisioning-lxc driver. This project is not under active maintenance by CHEF, and does not currently pass tests with the latest version of chef-provisioning. If you are interested in maintaining it, please contact us in the gitter.

chef-provisioning-lxc

Build Status Gem Version

This is the LXC provisioner for chef-provisioning.

Quick Start

Assuming you have host with working LXC setup already, you can directly invoke an example recipe using chef localmode

  • Clone chef-provisioning-lxc repo

    git clone https://github.com/chef/chef-provisioning-lxc
    
  • Run bundle install

    bundle install
    
  • Execute the test recipe to create a linux container

    bundle exec chef-client -z -o recipe[lxctests::simple] -c test/client.rb
    

Basic Usage

require 'chef/provisioning'
machine 'mario' do
  recipe 'apache2'
end

Machine Options

To specify provisioning options that will be used with all subsequent machine definitions:

with_machine_options :template => <template name>,
  :template_options => <arguments>,
  :backing_store => <backing store>

These options correspond to the options in lxc create:

  • template: the LXC template name to use.
  • template_options: An array of string arguments to pass to the template.
  • backing_store: The backing store to use for the file system.