Role lxc_hosts for OpenStack-Ansible
Go to file
Jesse Pretorius bb2e7a08a0 Revise container DNS resolution implementation
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
2016-08-17 18:42:05 +00:00
defaults Implement primary and secondary keyserver usage for cache prep 2016-08-04 13:08:29 +00:00
doc [DOCS] Create separate example playbook file 2016-08-11 20:21:22 -05:00
examples [DOCS] Create separate example playbook file 2016-08-11 20:21:22 -05:00
files Changed for lxc-host setup/build for multi-distro 2016-05-03 08:49:54 -05:00
handlers Fix generation of LXC hostnames 2016-05-04 14:14:59 -07:00
meta Ansible 2.1.1 role testing 2016-08-11 15:29:36 -05:00
releasenotes Implement primary and secondary keyserver usage for cache prep 2016-08-04 13:08:29 +00:00
tasks Implement primary and secondary keyserver usage for cache prep 2016-08-04 13:08:29 +00:00
templates Changed for lxc-host setup/build for multi-distro 2016-05-03 08:49:54 -05:00
tests Make the LXC cache prep use the host package source config 2016-05-18 18:14:17 +01:00
vars Revise container DNS resolution implementation 2016-08-17 18:42:05 +00:00
.gitignore Remove duplicates from .gitignore 2016-07-15 11:34:09 +10:00
.gitreview New git dotfiles for independant repository 2015-11-25 20:56:11 +00:00
bindep.txt Move other-requirements.txt to bindep.txt 2016-08-12 20:56:26 +02: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
manual-test.rc Changed for lxc-host setup/build for multi-distro 2016-05-03 08:49:54 -05:00
README.rst [DOCS] Add project links to README 2016-08-16 08:35:07 -05:00
run_tests.sh Changed for lxc-host setup/build for multi-distro 2016-05-03 08:49:54 -05:00
setup.cfg Updates for typos 2015-12-09 09:17:00 -06:00
setup.py Updated from global requirements 2016-07-15 03:57:29 +00:00
test-requirements.txt Add python packages for SNI support in tests 2016-08-16 14:25:33 +00:00
tox.ini Merge "Ansible 2.1.1 role testing" 2016-08-17 04:56:50 +00:00

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:

http://launchpad.net/openstack-ansible