Role lxc_hosts for OpenStack-Ansible
158d035b92
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 |
||
---|---|---|
defaults | ||
doc | ||
handlers | ||
meta | ||
tasks | ||
templates | ||
tests | ||
.gitignore | ||
.gitreview | ||
CONTRIBUTING.rst | ||
LICENSE | ||
other-requirements.txt | ||
README.rst | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
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" ] }