Role lxc_container_create for OpenStack-Ansible
68e382ba2c
Since overlayfs is now part of the mainstream kernel, it makes sense to take advantage of it to speed up the container creation process. This patch implements the ability to set 'overlayfs' as the backing store for containers. This is an optional feature which must explicitly be set by the deployer. As this only works with Ansible > 2.0 a pre-requisite check has been implemented to protect against its use with prior versions. The inventory and key prep playbook have been adjusted to work with Ansible versions <2 and >2. The logging for the veth cleanup has been removed as overlayfs containers do not have access to the /dev/log device. This causes the container setup to be incomplete. Depends-On: I20123b83af10c0890f4d5945b9fb230acd664213 Change-Id: If5b11ef6d94fe863a75efd174957ad43b9d2e030 |
||
---|---|---|
defaults | ||
doc | ||
handlers | ||
meta | ||
releasenotes | ||
tasks | ||
templates | ||
tests | ||
vars | ||
.gitignore | ||
.gitreview | ||
CONTRIBUTING.rst | ||
LICENSE | ||
manual-tests.rc | ||
other-requirements.txt | ||
README.rst | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini | ||
Vagrantfile |
OpenStack-Ansible LXC container create
Ansible role for creating LXC containers. This role will create several directories on the LXC host for use in bind mounted storage within the container.
Default Variables
../../defaults/main.yml
Required Variables
None
Example Playbook
- name: Create container(s)
hosts: all_containers
gather_facts: false
user: root
roles:
- { role: "lxc_container_create" }