Remove gitea02 from inventory so we can replace it

The global inventory is used when launching nodes so if we want to
replace a server we have to remove it from the inventory first. This is
that step for replacing gitea02.

Note that when adding it back for the new server there are some edits to
make to the playbooks as noted in the gitea sysadmin docs.

We do also remove this instance from haproxy as well to prevent unwanted
connections while we flip things over.

Change-Id: I53a3f517d46d046cb59e3185ca19ba3df55d8466
This commit is contained in:
Clark Boylan 2019-07-24 20:12:16 -07:00
parent 788f3b5b85
commit c23ac25264
2 changed files with 4 additions and 10 deletions
inventory
playbooks/group_vars

@ -174,12 +174,6 @@ all:
region_name: sjc1
public_v4: 38.108.68.172
public_v6: 2604:e100:3:0:f816:3eff:fe16:274
gitea02.opendev.org:
ansible_host: 38.108.68.122
location:
cloud: openstackci-vexxhost
region_name: sjc1
public_v4: 38.108.68.122
gitea03.opendev.org:
ansible_host: 38.108.68.133
location:

@ -5,8 +5,8 @@ haproxy_listeners:
servers:
- name: 'gitea01.opendev.org'
address: '38.108.68.172:3080'
- name: 'gitea02.opendev.org'
address: '38.108.68.122:3080'
#- name: 'gitea02.opendev.org'
# address: '38.108.68.122:3080'
- name: 'gitea03.opendev.org'
address: '38.108.68.133:3080'
- name: 'gitea04.opendev.org'
@ -25,8 +25,8 @@ haproxy_listeners:
servers:
- name: 'gitea01.opendev.org'
address: '38.108.68.172:3000'
- name: 'gitea02.opendev.org'
address: '38.108.68.122:3000'
#- name: 'gitea02.opendev.org'
# address: '38.108.68.122:3000'
- name: 'gitea03.opendev.org'
address: '38.108.68.133:3000'
- name: 'gitea04.opendev.org'