From 9722b90dbb010bf6df866cfd59ecf5acd4fa50e5 Mon Sep 17 00:00:00 2001 From: Matt Ray Date: Mon, 3 Dec 2012 16:15:57 -0600 Subject: [PATCH] updated packages and networking --- roles/lxc.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/roles/lxc.rb b/roles/lxc.rb index d2ae730..186914f 100644 --- a/roles/lxc.rb +++ b/roles/lxc.rb @@ -1,9 +1,26 @@ name "lxc" description "Use lxc for the hypervisor" + +run_list( + "recipe[lxc]" + ) + override_attributes( "nova" => { "libvirt" => { "virt_type" => "lxc" } + }, + "lxc" => { + "packages" => ['lxc', 'libvirt-bin'], + "addr" => '10.0.98.1', + "network" => '10.0.98.0/24', + "dhcp_range" => '10.0.98.2,10.0.98.254', + "containers" => { + "example" => { + "template" => "ubuntu" + } + } } ) +