OSDN Git Service

adds the drillbook::attribute_type_test recipe.
[metasearch/grid-chef-repo.git] / roles / lxc.rb
1 name 'lxc'
2 description 'LXC role.'
3
4 run_list(
5   'recipe[lxcs::lxc]',
6 )
7
8 #env_run_lists()
9
10 #default_attributes()
11
12 override_attributes(
13   'lxcs' => {
14     'lxc' => {
15       'extra-default.conf' => {
16         'default-br0.conf' => [
17           'lxc.network.type = veth',
18           'lxc.network.link = br0',
19           'lxc.network.flags = up',
20           'lxc.network.hwaddr = 00:16:3e:xx:xx:xx',
21         ],
22         'default-br0-unpriv.conf' => [
23           'lxc.network.type = veth',
24           'lxc.network.link = br0',
25           'lxc.network.flags = up',
26           'lxc.network.hwaddr = 00:16:3e:xx:xx:xx',
27           'lxc.id_map = u 0 100000 65536',
28           'lxc.id_map = g 0 100000 65536',
29         ],
30       },
31       'lxc-usernet' => [
32         #'alice veth lxcbr0 10',
33       ],
34       'unprivileged_container' => {
35         'enabled' => true,
36         'users_allow' => [
37           'root',
38           #'alice',
39         ],
40       },
41     },
42   },
43 )