Plugin that extends knife cli with commands for managing lxc containers.
Tested on ubuntu 10.04 with ruby 1.8.7. You need to install lxc packages.
Install from command line
$ gem install knife-lxc
Or add dependency to your Gemfile
gem 'knife-lxc'
$ knife lxc server create -N container_name
It will use default template (lucid-chef) for creating lxc container.
You can pass additional parameters
-d, --distro DISTRO Bootstrap a lxc container using a template; default is 'lucid-chef'
--ip IP Ip for new container
-E, --environment ENVIRONMENT Set the Chef environment
$ knife lxc server list
$ knife lxc server delete -N container_name
$ knife lxc