cookbook 'lxc', '= 0.0.2'
lxc (11) Versions 0.0.2 Follow20
Chef driven Linux Containers
cookbook 'lxc', '= 0.0.2', :supermarket
knife supermarket install lxc
knife supermarket download lxc
LXC
Manage linux containers with Chef.
Example
include_recipe 'lxc' lxc_container 'my_container' do action :create validation_client 'my-validator' server_uri 'https://api.opscode.com/organizations/myorg' validator_pem content_from_encrypted_dbag run_list ['role[base]'] chef_enabled true end lxc_container 'my_container_clone' do action :clone base_container 'my_container' chef_enabled true end lxc_service 'my_container_clone' do action :start end
Containers do not have to be chef enabled but it does make them
extremely easy to configure. The lxc_container resource also provides
initialize_commands
which an array of commands can be provided
that will be run after the container is created.
Repository:
Contributors
- Sean Porter (https://github.com/portertech)