Role lxc_hosts for OpenStack-Ansible
Go to file
Jimmy McCrory 158d035b92 Make corrections to LXC bridge template file
This change adjusts a few of the modifications made to the
lxc-net-bridge.cfg.j2 template file in change
I3c8225124a5f18db81259e1d52d0168ef52c3c17.

The minus signs have been removed from if and endif blocks so that
whitespace is kept intact between sections. The ordering of post-up and
post-down commands has also been changed so that iptables rules are
created before the dnsmasq service is started, as they were previously.

The default value of lxc_net_gateway has also been changed to null so
that it's evaluated as expected. Its current value, none, is evaluated
as a string.

A test has been added to compare the contents of the deployed lxc bridge
interface file with its expected contents.

Change-Id: I39d7b3f40de6ac691550c11d71bb6a182b3452f4
2016-03-05 11:41:31 -08:00
defaults Make corrections to LXC bridge template file 2016-03-05 11:41:31 -08:00
doc Updates for typos 2015-12-09 09:17:00 -06:00
handlers Fix apparmor profile load handler 2016-03-04 23:44:48 +00:00
meta IRR for lxc_host 2015-11-03 04:22:57 -06:00
tasks Resolve bad assumptions about the base OS 2016-03-04 21:04:11 +00:00
templates Make corrections to LXC bridge template file 2016-03-05 11:41:31 -08:00
tests Make corrections to LXC bridge template file 2016-03-05 11:41:31 -08:00
.gitignore New git dotfiles for independant repository 2015-11-25 20:56:11 +00:00
.gitreview New git dotfiles for independant repository 2015-11-25 20:56:11 +00:00
CONTRIBUTING.rst IRR for lxc_host 2015-11-03 04:22:57 -06:00
LICENSE IRR for lxc_host 2015-11-03 04:22:57 -06:00
other-requirements.txt Resolve bad assumptions about the base OS 2016-03-04 21:04:11 +00:00
README.rst IRR for lxc_host 2015-11-03 04:22:57 -06:00
run_tests.sh Update run_tests to be more complete 2015-12-09 13:45:20 +00:00
setup.cfg Updates for typos 2015-12-09 09:17:00 -06:00
setup.py IRR for lxc_host 2015-11-03 04:22:57 -06:00
test-requirements.txt Update tox config and add bashate E006, E040 exceptions 2016-02-12 11:36:17 +00:00
tox.ini Resolve bad assumptions about the base OS 2016-03-04 21:04:11 +00:00

OpenStack LXC host setup

tags

openstack, lxc, host, cloud, ansible

category

*nix

Role for deployment and setup of an LXC host.

- name: Basic lxc host setup
  hosts: "hosts"
  user: root
  roles:
    - { role: "lxc_hosts", tags: [ "lxc-host", "host-setup" ] }