From 3734f000f964a0eebe97b67c3b03900b0b22fc6d Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 25 Jun 2019 15:16:59 -0700 Subject: [PATCH] Enroll new gitea06 into ansible inventory We add the new host so that it will get configured as a gitea backend server. We exclude this server from the list of gitea hosts to configure git repos on because we want to recover its DB from one of the other sibling nodes first. This should preserve the http redirects for us. Once we have the db recovered we can enable replication from gerrit then readd this host to the haproxy load balancer. Change-Id: Ia2a98e5ded43cad044db36ca8d0da5a96277afee --- inventory/openstack.yaml | 7 +++++++ playbooks/remote_puppet_git.yaml | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/inventory/openstack.yaml b/inventory/openstack.yaml index c5da8ccdd6..08da1f4b68 100644 --- a/inventory/openstack.yaml +++ b/inventory/openstack.yaml @@ -197,6 +197,13 @@ all: cloud: openstackci-vexxhost region_name: sjc1 public_v4: 38.108.68.55 + gitea06.opendev.org: + ansible_host: 38.108.68.250 + location: + cloud: openstackci-vexxhost + region_name: sjc1 + public_v4: 38.108.68.250 + public_v6: 2604:e100:3:0:f816:3eff:fe72:b4a9 gitea07.opendev.org: ansible_host: 38.108.68.86 location: diff --git a/playbooks/remote_puppet_git.yaml b/playbooks/remote_puppet_git.yaml index 2f9bfcb948..28587dbfe0 100644 --- a/playbooks/remote_puppet_git.yaml +++ b/playbooks/remote_puppet_git.yaml @@ -22,7 +22,9 @@ force: yes register: gitinfo -- hosts: "gitea:!disabled" +# We exclude gitea06 because we want to recover its database from a sibgling +# node in order to preserve the redirects. +- hosts: "gitea:!gitea06.opendev.org:!disabled" name: "Create repos on gitea servers" strategy: free max_fail_percentage: 1