system-config/playbooks
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
..
filter_plugins dns_[a|aaaa] filter; use host for lookup 2018-09-13 22:50:40 +10:00
group_vars Create opendev mirrors 2019-05-21 11:08:25 +10:00
host_vars Use handlers for letsencrypt cert updates 2019-05-14 08:14:51 +10:00
k8s Add resources for deploying rook and xtradb to kuberenets 2019-02-05 18:52:21 +00:00
module_utils/facts/system Ensure apt is used on ubuntu hosts with zypper 2018-08-20 20:45:13 +00:00
roles Create opendev mirrors 2019-05-21 11:08:25 +10:00
templates/clouds Force ipv4 on vexxhost nodepool nodes 2019-05-14 11:54:43 -07:00
zuul Create opendev mirrors 2019-05-21 11:08:25 +10:00
apply-package-updates.yaml Apply package updates before we reboot in launch-node 2019-02-26 14:17:23 -08:00
base.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
bootstrap-k8s-nodes.yaml Stop running k8s-on-openstack nested 2019-02-12 18:17:46 +00:00
bridge.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
clouds_layouts.yml Add openstack keypair for the bridge root key 2019-01-02 20:35:15 +00:00
gitea-rename-tasks.yaml Add gitea to project rename playbook 2019-03-01 09:30:46 -08:00
install_puppet.yaml Handle moved puppet repos 2019-05-15 16:03:07 -07:00
nodepool_restart.yaml Add nodepool_restart playbook 2019-03-04 09:20:07 -08:00
remote_puppet_adhoc.yaml Clean up puppet variables and playbooks 2018-08-17 09:41:12 -05:00
remote_puppet_afs.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
remote_puppet_else.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
remote_puppet_git.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
rename_repos.yaml Rename review.openstack.org to review.opendev.org 2019-05-09 14:38:51 +00:00
run_cloud_launcher.yaml Name plays in playbooks 2018-09-07 10:51:56 -07:00
service-bridge.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
service-gitea-lb.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
service-letsencrypt.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
service-mirror.yaml Create opendev mirrors 2019-05-21 11:08:25 +10:00
service-nameserver.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
service-nodepool.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
service-registry.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
service-zuul.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
set-hostnames.yaml Don't gather facts in set-hostnames 2019-05-13 06:28:25 +00:00
sync-gitea-projects.yaml Add utility playbook for fixing gitea project settings 2019-03-04 16:06:49 +00:00
test-gitea.yaml Split the base playbook into services 2019-05-19 07:31:00 -05:00
unattended_upgrades.yml Rename attended_upgrades playbook to unattended_upgrades 2016-07-19 10:41:09 +02:00
update-system-config.yaml Stop running k8s-on-openstack nested 2019-02-12 18:17:46 +00:00
update_puppet_version.yaml Only install puppet 4 if not already installed 2019-03-08 09:04:11 -08:00
zuul_reconfigure.yaml Stub out zuul_reconfigure playbook 2018-09-14 09:17:36 -06:00
zuul_restart.yaml Correct typo in zuul restart playbook 2019-01-23 08:53:42 -08:00
zuul_start.yaml Use host groups for zuul playbooks 2018-09-12 12:26:43 -06:00
zuul_stop.yaml Use host groups for zuul playbooks 2018-09-12 12:26:43 -06:00