system-config/playbooks/roles
Ian Wienand 670107045a Create opendev mirrors
This impelements mirrors to live in the opendev.org namespace.  The
implementation is Ansible native for deployment on a Bionic node.

The hostname prefix remains the same (mirrorXX.region.provider.) but
the groups.yaml splits the opendev.org mirrors into a separate group.
The matches in the puppet group are also updated so to not run puppet
on the hosts.

The kerberos and openafs client parts do not need any updating and
works on the Bionic host.

The hosts are setup to provision certificates for themselves from
letsencrypt.  Note we've added a new handler for mirror nodes to use
that restarts apache on certificate issue/renewal.

The new "mirror" role is a port of the existing puppet mirror.pp.  It
installs apache, sets up some modules, makes some symlinks, sets up a
cleanup cron job and installs the apache vhost configuration.

The vhost configuration is also ported from the extant puppet.  It is
simplified somewhat; but the biggest change is that we have extracted
the main port 80 configuration into a macro which is applied to both
port 80 and 443; i.e. the host will have SSL support.  The other ports
are left alone for now, but can be updated in due course.

Thus we should be able to CNAME the existing mirrors to new nodes, and
any existing http access can continue.  We can update our mirror setup
scripts to point to https resources as appropriate.

Change-Id: Iec576d631dd5b02f6b9fb445ee600be060f9cf1e
2019-05-21 11:08:25 +10:00
..
ansible-cron Ensure lockfile dir is created for bridge.o.o 2019-03-15 09:36:56 +11:00
base-repos roles: Add README.rst and lint 2018-08-23 21:34:42 +10:00
base-server Install kubectl on bridge 2019-02-11 10:16:58 -08:00
cloud-launcher-cron run_cloud_launcher.sh : generate runtime stats 2018-11-08 08:43:40 +11:00
configure-kubectl Configure .kube/config on bridge 2019-02-06 15:43:19 -08:00
configure-openstacksdk Manage clouds.yaml files in ansible 2018-09-04 08:49:00 -07:00
disable-puppet-agent roles: Add README.rst and lint 2018-08-23 21:34:42 +10:00
edit-secrets-script Add edit-secrets script to bridge.o.o 2019-02-27 08:45:11 -08:00
gitea Merge "Split the base playbook into services" 2019-05-20 10:04:40 +00:00
gitea-git-repos Retry gitea repo setting HTTP POSTs 2019-03-15 13:01:39 -07:00
haproxy Merge "Prune docker images after docker-compose up" 2019-05-16 22:55:04 +00:00
install-ansible Merge "Update zuul servers to puppet 4" 2019-05-14 20:21:03 +00:00
install-docker Don't install a blank docker daemon config 2019-02-20 09:09:52 -08:00
install-kubectl Install kubectl on bridge 2019-02-11 10:16:58 -08:00
iptables Set iptables forward drop by default 2018-12-14 10:33:26 -08:00
letsencrypt-acme-sh-install letsencrypt: use a fake CA for self-signed testing certs 2019-05-14 10:24:28 +10:00
letsencrypt-create-certs Create opendev mirrors 2019-05-21 11:08:25 +10:00
letsencrypt-install-txt-record letsencrypt support 2019-04-02 15:31:41 +11:00
letsencrypt-request-certs Use handlers for letsencrypt cert updates 2019-05-14 08:14:51 +10:00
logrotate Add logrotate role and rotate ansible log files 2018-09-05 09:15:46 +10:00
master-nameserver master-nameserver: Add unmanaged domains; add acme.opendev.org 2019-03-27 14:22:59 +11:00
minimal-nodepool Add a run-nodepool job 2018-09-05 15:52:36 -07:00
mirror Create opendev mirrors 2019-05-21 11:08:25 +10:00
nameserver Remove zonefile from nsd config 2019-04-02 13:20:01 +11:00
pip3 Make the pip3 role really install something 2018-10-31 15:21:33 +00:00
registry Prune docker images after docker-compose up 2019-05-02 15:09:37 -07:00
root-keys roles: Add README.rst and lint 2018-08-23 21:34:42 +10:00
set-hostname roles: Add README.rst and lint 2018-08-23 21:34:42 +10:00
snmpd Add snmpd role and add it to base 2018-08-27 07:34:36 -07:00
timezone Add timezone role 2018-08-27 07:34:28 -07:00
unbound unbound: fix dhclient.conf copy 2018-08-28 14:28:48 -07:00
users Merge "Don't create "admin" group" 2018-08-24 19:57:29 +00:00
zuul-preview Prune docker images after docker-compose up 2019-05-02 15:09:37 -07:00