From 86a0b8095370d86bcc819138d34a9d9212366677 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 15 Feb 2023 16:27:55 -0800 Subject: [PATCH] Add gitea09 to our inventory This adds a new Jammy Gitea09 server to our inventory. THis should deploy Gitea and provision empty repos on it for entries in our projects list. However, we'll need to do database surgery to carry over redirects from an older server. It is for this reason we don't add the server to the Gerrit replication list or our load balancer's pool. We'll take this a step at a time and add the new server to those other items when it is ready. Change-Id: Idac0f250f74d8db4ff8d6d68c1a1c35c28a4660f --- hiera/common.yaml | 1 + inventory/base/hosts.yaml | 11 +++++++++++ inventory/service/host_vars/gitea09.opendev.org.yaml | 4 ++++ .../roles/letsencrypt-create-certs/handlers/main.yaml | 3 +++ 4 files changed, 19 insertions(+) create mode 100644 inventory/service/host_vars/gitea09.opendev.org.yaml diff --git a/hiera/common.yaml b/hiera/common.yaml index 62d5c611b0..31d00dde10 100644 --- a/hiera/common.yaml +++ b/hiera/common.yaml @@ -24,6 +24,7 @@ cacti_hosts: - gitea06.opendev.org - gitea07.opendev.org - gitea08.opendev.org +- gitea09.opendev.org - grafana01.opendev.org - graphite02.opendev.org - jvb01.opendev.org diff --git a/inventory/base/hosts.yaml b/inventory/base/hosts.yaml index 00772202b9..03ce0b5618 100644 --- a/inventory/base/hosts.yaml +++ b/inventory/base/hosts.yaml @@ -253,6 +253,17 @@ all: - 'ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBISOjXFfpk01z2G4eQfksA9DQRi3PQyP4m2RUFz4lmsClHVS9cP6CfQF01KpIzkL4UXRu3u4QwCqno0DrXxKoqA=' - 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOhcvWMusjlFfm+qqpP9Hfc+a2SKb+evz/h5AcAwElmyaes/BpmXsvXLMAXvDG0ZjPwUbyvVcJAwug77+fBI6JBt6BjlfqMTsxnwN1jVPug4fu7RSor4huBagiq6uTS8t1tXqwEfqzBvLOat4FNXsQpv1yIaORgjSj593GoixfWPvTzJHISFSB5TTeqrLK1XJ3LIWqL5PyHsBaKbL4SPIoHzX6HslUmxVpJ7m7U0VtcfnxylVsTnq3YHc8nAK+X4Fu1T7L+ertAwIlFlw5W9JppaUotP0m0Cr/CCUTVj79EfADGUJWSqdpPUET3wB7+cwalan5PKwoQVMHpIlFZYnd' - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBs08YhtJq4tVGqXv9sjc3NpsdQ1wBZAiocBC/RVpQSp' + gitea09.opendev.org: + ansible_host: 38.108.68.113 + location: + cloud: openstackci-vexxhost + region_name: sjc1 + public_v4: 38.108.68.113 + public_v6: 2604:e100:3:0:f816:3eff:fe4d:97eb + host_keys: + - 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCwR4/2rDgH4pKuIMEr4PDjxfVAbxFdf1zfzQwOPlJPVcr9EtiWYuZMxOR8C3e2g09mqd4IFkBy3g78q40/MAQ6vlwEc/brGgSmu8Aipz4JJZRNpFYOl0xjEEMBjKikFN8CsLQv8AMShqu56D/zhmg2M4V71R17lLzaRAYUatwVTB8UHtIZDutuRgQCd26Zm9hV9dr7zKghEF8i7mzMeNQpDTg/M6ncfXCWxEza7o2tgli7WM32DaO5nzS4/xol/2u+aQwulrPkSuyYilpTtzWp+YWUpNrZOmfdss7Sa812O+TickzaJl6A7Mt0FNiu7TcGUdtqEgKFI4yaWwHtbGPqr8Bt5dIRgDEztgSMazL7peCIQZnzYXt7lt8JBabkzx4excqkHtF5E4L1jWfmrvllnL8/+4ql9NYHgxKGi+9ggPc8/s0gJrE6gzd20VLEyqax4n6oUvYHxXmZMxxZT9bW4ndHm/kTuSRlFVAkQU6vXw7JfWkv/62mKr6b9ASNxh8=' + - 'ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIe2MSzCLvaLRP2FJ7GfJfM61O9sYn42DIbgtfgrFXp2GFy2AbWyjd//q6QzDqhj61Gwd1TF0zGWri69a81BaEM=' + - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEhVn/czIfiRctJQurF6IyFaliNFwye3RBrE2qXlbVpj' grafana01.opendev.org: ansible_host: 198.101.251.7 location: diff --git a/inventory/service/host_vars/gitea09.opendev.org.yaml b/inventory/service/host_vars/gitea09.opendev.org.yaml new file mode 100644 index 0000000000..20fc0be5c0 --- /dev/null +++ b/inventory/service/host_vars/gitea09.opendev.org.yaml @@ -0,0 +1,4 @@ +letsencrypt_certs: + gitea09-main: + - gitea09.opendev.org:3000 + - opendev.org diff --git a/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml b/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml index a779ebc3db..7b6e7f9e8e 100644 --- a/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml +++ b/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml @@ -287,3 +287,6 @@ - name: letsencrypt updated gitea08-main include_tasks: roles/letsencrypt-create-certs/handlers/restart_gitea.yaml + +- name: letsencrypt updated gitea09-main + include_tasks: roles/letsencrypt-create-certs/handlers/restart_gitea.yaml