Role lxc_hosts for OpenStack-Ansible
Go to file
Jesse Pretorius f11bbc4f34 Make the LXC cache prep use the host resolver config
Currently the container cache preparation process uses a list of
resolver addresses in order to prepare the container DNS resolution
configuration.

This presents a few problems:
- The default value is set to Google's DNS addresses, which may not
  be accessible from a deployer's environment. This will cause an
  installation to fail and the deployer will have to dig around to
  find out why. This is counterintuitive - it would be better if the
  default process was to discover the host's configuration and to use
  that instead.
- Nothing other than a very simple resolv.conf can be implemented.
  Deployers may wish to implement more advanced settings such as
  timeouts and round-robin queries.

This patch changes the image cache preparation process to ensure that
the container resolver configuration matches that of the host. This is
simpler and more intuitive.

Change-Id: I66b448dee361e231d172eb278b290ec4dccfdf97
2016-05-27 16:21:07 +00:00
defaults Make the LXC cache prep use the host resolver config 2016-05-27 16:21:07 +00:00
doc Updates for typos 2015-12-09 09:17:00 -06: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 Changed for lxc-host setup/build for multi-distro 2016-05-03 08:49:54 -05:00
releasenotes Make the LXC cache prep use the host resolver config 2016-05-27 16:21:07 +00:00
tasks Include the apt keys from lxc host in cache generation 2016-05-20 16:06:34 +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 Make the LXC cache prep use the host resolver config 2016-05-27 16:21:07 +00:00
.gitignore Add .swp files to .gitignore 2016-05-04 15:18:34 +01: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
manual-test.rc Changed for lxc-host setup/build for multi-distro 2016-05-03 08:49:54 -05:00
other-requirements.txt Changed for lxc-host setup/build for multi-distro 2016-05-03 08:49:54 -05:00
README.rst IRR for lxc_host 2015-11-03 04:22:57 -06: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 IRR for lxc_host 2015-11-03 04:22:57 -06:00
test-requirements.txt blacklist Ansible 1.9.6 2016-04-16 08:47:20 -05:00
tox.ini Make the LXC cache prep use the host package source config 2016-05-18 18:14:17 +01: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" ] }