From 0463609584293964f2dbf6562c52c0c1f17a4b6a Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 7 Feb 2020 08:51:17 -0800 Subject: [PATCH] Add airship-citycloud mirror This adds a mirror to the new airship citycloud region. Add the host to the inventory and add necessary host vars for LE setup. Depends-On: https://review.opendev.org/706573 Change-Id: I33cefe914911b4f5ce5e09e0329ba48e039ede64 --- inventory/openstack.yaml | 7 +++++++ .../mirror01.kna1.airship-citycloud.opendev.org.yaml | 5 +++++ .../roles/letsencrypt-create-certs/handlers/main.yaml | 3 +++ 3 files changed, 15 insertions(+) create mode 100644 playbooks/host_vars/mirror01.kna1.airship-citycloud.opendev.org.yaml diff --git a/inventory/openstack.yaml b/inventory/openstack.yaml index 432f6903ef..3ab1e722fc 100644 --- a/inventory/openstack.yaml +++ b/inventory/openstack.yaml @@ -576,6 +576,13 @@ all: region_name: regionOne public_v4: 108.44.198.37 public_v6: 2001:470:e045:2:f816:3eff:fee6:691d + mirror01.kna1.airship-citycloud.opendev.org: + ansible_host: 188.212.109.64 + location: + cloud: opendevci-airship + region_name: kna1 + public_v4: 188.212.109.64 + public_v6: '' nb01.openstack.org: ansible_host: 2001:4800:7818:103:be76:4eff:fe04:9d5a location: diff --git a/playbooks/host_vars/mirror01.kna1.airship-citycloud.opendev.org.yaml b/playbooks/host_vars/mirror01.kna1.airship-citycloud.opendev.org.yaml new file mode 100644 index 0000000000..b5b3ba4046 --- /dev/null +++ b/playbooks/host_vars/mirror01.kna1.airship-citycloud.opendev.org.yaml @@ -0,0 +1,5 @@ +ansible_python_interpreter: python3 +letsencrypt_certs: + mirror01-kna1-airship-citycloud-main: + - mirror01.kna1.airship-citycloud.opendev.org + - mirror.kna1.airship-citycloud.opendev.org diff --git a/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml b/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml index cac08944f6..71b43e5507 100644 --- a/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml +++ b/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml @@ -78,6 +78,9 @@ - name: letsencrypt updated mirror02-mtl01-inap-main include_tasks: roles/letsencrypt-create-certs/handlers/restart_apache.yaml +- name: letsencrypt updated mirror01-kna1-airship-citycloud-main + include_tasks: roles/letsencrypt-create-certs/handlers/restart_apache.yaml + # Gate testing hosts: - name: letsencrypt updated letsencrypt01-main-service include_tasks: roles/letsencrypt-create-certs/handlers/touch_file.yaml