Role lxc_container_create for OpenStack-Ansible
Go to file
Jesse Pretorius 68e382ba2c Implement overlayfs-backed containers
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
2016-07-17 16:13:59 +00:00
defaults Implement overlayfs-backed containers 2016-07-17 16:13:59 +00:00
doc Update sphinx configuration 2016-07-12 16:51:07 +01:00
handlers IRR for lxc_container_create 2015-11-03 08:00:45 -06:00
meta updated for lxc-container-create for multi-distro support 2016-05-03 15:15:34 -05:00
releasenotes Implement overlayfs-backed containers 2016-07-17 16:13:59 +00:00
tasks Implement overlayfs-backed containers 2016-07-17 16:13:59 +00:00
templates Implement overlayfs-backed containers 2016-07-17 16:13:59 +00:00
tests Clean up container cache prep in tests 2016-06-17 18:21:00 +01:00
vars Add Ubuntu ppc64le support 2016-06-29 22:58:51 -05:00
.gitignore Add .swp files to .gitignore 2016-05-04 15:18:25 +01:00
.gitreview New git dotfiles for independant repository 2015-11-26 00:43:02 +00:00
CONTRIBUTING.rst updated for lxc-container-create for multi-distro support 2016-05-03 15:15:34 -05:00
LICENSE IRR for lxc_container_create 2015-11-03 08:00:45 -06:00
manual-tests.rc updated for lxc-container-create for multi-distro support 2016-05-03 15:15:34 -05:00
other-requirements.txt updated for lxc-container-create for multi-distro support 2016-05-03 15:15:34 -05:00
README.rst DOC - Adopting the common role documentation pattern 2016-06-07 10:44:42 -04:00
run_tests.sh updated for lxc-container-create for multi-distro support 2016-05-03 15:15:34 -05:00
setup.cfg Updates for typos 2015-12-08 16:50:45 -06:00
setup.py IRR for lxc_container_create 2015-11-03 08:00:45 -06:00
test-requirements.txt Update tox configuration 2016-07-08 13:33:24 +01:00
tox.ini Update tox configuration 2016-07-08 13:33:24 +01:00
Vagrantfile Adding Vagrantfile for local developer testing 2016-04-22 13:36:45 -04:00

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" }