System configuration for the OpenDev Collaboratory
Go to file
Ian Wienand 11343cc75d dns_[a|aaaa] filter; use host for lookup
After adding iptables configuration to allow bridge.o.o to send stats
to graphite.o.o in I299c0ab5dc3dea4841e560d8fb95b8f3e7df89f2, I
encountered the weird failure that ipv6 rules seemed to be applied on
graphite.o.o, but not the ipv4 ones.

Eventually I realised that the dns_a filter as written is using
socket.getaddrinfo() on bridge.o.o and querying for itself.  It thus
gets matches the loopback entry in /etc/hosts and passes along a rule
for 127.0.1.1 or similar.  The ipv6 hostname is not in /etc/hosts so
this works there.

What we really want the dns_<a|aaaa> filters to do is lookup the
address in DNS, rather than the local resolver.  Without wanting to
get involved in new libraries, etc. the simplest option seems to be to
use the well-known 'host' tool.  We can easily parse the output of
this to ensure we're getting the actual DNS addresses for hostnames.

An ipv6 match is added to the existing test.  This is effectively
tested by the existing usage of the iptables role which sets up rules
for cacti.o.o access.

Change-Id: Ia7988626e9b1fba998fee796d4016fc66332ec03
2018-09-13 22:50:40 +10:00
doc Update artifact signing key generation process 2018-09-01 01:19:18 +00:00
hiera Install limestone CA on hosts using openstacksdk 2018-08-31 12:17:35 -07:00
inventory Treat unparsed inventory as a failure 2018-09-12 15:09:21 -07:00
launch launch-node.py : add timeout option 2018-09-12 12:32:29 +10:00
manifests Remove puppet nodepool credentials 2018-09-11 09:40:04 +10:00
modules/openstack_project Add LXC COPR cache 2018-09-12 12:22:55 -06:00
playbooks dns_[a|aaaa] filter; use host for lookup 2018-09-13 22:50:40 +10:00
roles Merge "roles/kerberos-client: fix defaults" 2018-09-12 21:03:05 +00:00
roles-test Create ansible roles to install puppet 2018-08-28 16:42:45 +10:00
testinfra dns_[a|aaaa] filter; use host for lookup 2018-09-13 22:50:40 +10:00
tools Write ansible log to fileout in apply test 2018-09-06 15:15:40 -07:00
.gitignore Ignore ansible .retry files 2016-07-15 12:04:48 -07:00
.gitreview Rename config to system-config in .gitreview 2014-10-17 22:31:20 +00:00
.zuul.yaml Add infra-run-zuul_reconfigure 2018-09-12 13:57:37 -06:00
bindep.txt Add libffi dev packages needed for ansible install 2016-10-04 15:20:00 -07:00
Gemfile Add beaker tests for openstack_project::server 2018-07-10 22:04:57 +02:00
install_modules.sh Merge "Support puppet5 for bionic" 2018-08-22 21:26:36 +00:00
install_puppet.sh Install the puppetlabs puppet package 2018-08-23 14:55:08 +10:00
make_swap.sh Add base playbooks and roles to bootstrap a new server 2018-08-01 14:57:44 -07:00
modules.env Enable unattended upgrades 2018-08-28 12:05:15 -04:00
mount_volume.sh Add support to launch-node for cinder attach 2016-04-19 11:07:23 -07:00
Rakefile Further changes to bring puppetboard online 2014-03-22 12:54:38 -07:00
README.md Replace ci.o.o links with docs.o.o/infra 2015-05-14 21:38:19 +00:00
roles.yaml Consume renamed ansible-role-puppet 2016-06-02 10:47:36 +03:00
run_all.sh Add statsd metrics for ansible runs 2018-09-10 14:49:45 +10:00
run_cloud_launcher.sh Run cloud launcher on bridge.o.o 2018-09-05 13:33:26 -07:00
run_puppet.sh Clean up bashate failures 2014-09-30 12:40:59 -07:00
setup.cfg Update to openstackdocstheme 2018-06-25 11:19:43 +10:00
setup.py Update to openstackdocstheme 2018-06-25 11:19:43 +10:00
test-requirements.txt Add system-config-run-eavesdrop 2018-08-30 10:25:23 -07:00
tox.ini Add system-config-run-eavesdrop 2018-08-30 10:25:23 -07:00

Puppet Modules

These are a set of puppet manifests and modules that are currently being used to manage the OpenStack Project infrastructure.

The main entry point is in manifests/site.pp.

In general, most of the modules here are designed to be able to be run either in agent or apply mode.

These puppet modules require puppet 2.7 or greater. Additionally, the site.pp manifest assumes the existence of hiera.

See http://docs.openstack.org/infra/system-config for more information.

Documentation

The documentation presented at http://docs.openstack.org/infra/system-config comes from git://git.openstack.org/openstack-infra/system-config repo's docs/source. To build the documentation use

$ tox -evenv python setup.py build_sphinx