cookbook 'lxcs', '= 0.1.0'
lxcs (9) Versions 0.1.0 Follow0
Installs/Configures LinuxContainers.org products
cookbook 'lxcs', '= 0.1.0', :supermarket
knife supermarket install lxcs
knife supermarket download lxcs
lxcs Cookbook
This cookbook sets up LinuxContainers.org products (LXC, LXD).
Contents
Requirements
Platforms
- Ubuntu
Cookbooks
- None.
Attributes
Key | Type | Description, example | Default |
---|---|---|---|
['lxcs']['lxc']['env']['lxc'] |
Hash | Content in the /etc/default/lxc . |
See attributes/default.rb
|
['lxcs']['lxc']['env']['lxc-net'] |
Hash | Content in the /etc/default/lxc-net . |
See attributes/default.rb
|
['lxcs']['lxc']['default.conf'] |
Array, String | Content (line strings or single string) in the /etc/lxc/default.conf . |
See attributes/default.rb
|
['lxcs']['lxc']['extra-default.conf'] |
Hash | Additional container configuration default files. |
{} , See attributes/default.rb
|
['lxcs']['lxc']['lxc-usernet'] |
Array, String | Content (line strings or single string) in the /etc/lxc/lxc-usernet . |
[] , See attributes/default.rb
|
['lxcs']['lxd']['with_zfs'] |
Boolean | with ZFS utility. | false |
['lxcs']['lxd']['users_allow'] |
Array | Non-root users allowed to manage Linux containers on LXD. | [] |
Usage
Recipes
lxcs::default
This recipe does nothing.
lxcs::lxc
This recipe installs LXC.
lxcs::lxd
This recipe sets up LXD.
Role Examples
roles/lxc.rb
name 'lxc' description 'LXC role.' run_list( 'recipe[lxcs::lxc]', ) override_attributes( 'lxcs' => { 'lxc' => { 'extra-default.conf' => { 'default-br0.conf' => [ 'lxc.network.type = veth', 'lxc.network.link = br0', 'lxc.network.flags = up', 'lxc.network.hwaddr = 00:16:3e:xx:xx:xx', ], 'default-br0-unpriv.conf' => [ 'lxc.network.type = veth', 'lxc.network.link = br0', 'lxc.network.flags = up', 'lxc.network.hwaddr = 00:16:3e:xx:xx:xx', 'lxc.id_map = u 0 100000 65536', 'lxc.id_map = g 0 100000 65536', ], }, 'lxc-usernet' => [ 'alice veth lxcbr0 10', 'bob veth lxcbr0 10', ], }, }, )
roles/lxd.rb
name 'lxd' description 'LXD role.' run_list( 'recipe[lxcs::lxd]', ) override_attributes( 'lxcs' => { 'lxd' => { 'with_zfs' => true, 'users_allow' => [ 'alice', 'bob', ], }, }, )
License and Authors
- Author:: whitestar at osdn.jp
Copyright 2017, whitestar Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
lxcs CHANGELOG
0.1.0
- Initial release of lxcs
Collaborator Number Metric
0.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Foodcritic Metric
0.1.0 passed this metric
License Metric
0.1.0 passed this metric
0.1.0 failed this metric
0.1.0 passed this metric
License Metric
0.1.0 passed this metric
0.1.0 passed this metric