Role lxc_hosts for OpenStack-Ansible
bb2e7a08a0
The current LXC cache preparation copies the DNS resolver config from the host into the container. When the host has been setup with a DNS caching system like 'unbound' running on it, the host's resolv.conf contains only a localhost nameserver entry which will not work from inside the container. The Ubuntu containers use resolvconf by default. Resolvconf gathers the DNS settings from each interface configured and compiles /etc/resolv.conf from the interface information. This results in a nameserver list which will start with the LXC dnsmasq service which runs on lxcbr0. This service uses the host's DNS configuration for name resolution. In effect, therefore, when the containers use the DNS service on lxcbr0, the host does the resolution and responds to the container. This means far less moving parts and a far more predictable implementation for name resolution. This patch implements the changes necessary for this strategy to work. Change-Id: Ib139af5221dbb1f479ca068e472cf0e8aa828a8d |
||
---|---|---|
defaults | ||
doc | ||
examples | ||
files | ||
handlers | ||
meta | ||
releasenotes | ||
tasks | ||
templates | ||
tests | ||
vars | ||
.gitignore | ||
.gitreview | ||
bindep.txt | ||
CONTRIBUTING.rst | ||
LICENSE | ||
manual-test.rc | ||
README.rst | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
OpenStack-Ansible LXC hosts
Ansible role that configures a host for running LXC containers.
- Documentation for the project can be found at:
-
http://docs.openstack.org/developer/openstack-ansible-lxc_hosts
- The project home is at: