From a2af942fa3eb186464151100793b5ba6694dfbcd Mon Sep 17 00:00:00 2001 From: Clark Boylan <clark.boylan@gmail.com> Date: Mon, 22 Jul 2019 09:18:38 -0700 Subject: [PATCH] Remove gitea01 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 gitea01. 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: If32405b1302353f1f262a30b7392533f86fec1e4 --- inventory/openstack.yaml | 6 ------ playbooks/group_vars/gitea-lb.yaml | 8 ++++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/inventory/openstack.yaml b/inventory/openstack.yaml index d5c1b05e9c..bfe1e13c8e 100644 --- a/inventory/openstack.yaml +++ b/inventory/openstack.yaml @@ -167,12 +167,6 @@ all: cloud: openstackci-vexxhost region_name: sjc1 public_v4: 38.108.68.124 - gitea01.opendev.org: - ansible_host: 38.108.68.93 - location: - cloud: openstackci-vexxhost - region_name: sjc1 - public_v4: 38.108.68.93 gitea02.opendev.org: ansible_host: 38.108.68.122 location: diff --git a/playbooks/group_vars/gitea-lb.yaml b/playbooks/group_vars/gitea-lb.yaml index 4aa25eefbe..63d6eabdd9 100644 --- a/playbooks/group_vars/gitea-lb.yaml +++ b/playbooks/group_vars/gitea-lb.yaml @@ -3,8 +3,8 @@ haproxy_listeners: bind: - ':::80' servers: - - name: 'gitea01.opendev.org' - address: '38.108.68.93:3080' + #- name: 'gitea01.opendev.org' + # address: '38.108.68.93:3080' - name: 'gitea02.opendev.org' address: '38.108.68.122:3080' - name: 'gitea03.opendev.org' @@ -23,8 +23,8 @@ haproxy_listeners: bind: - ':::443' servers: - - name: 'gitea01.opendev.org' - address: '38.108.68.93:3000' + #- name: 'gitea01.opendev.org' + # address: '38.108.68.93:3000' - name: 'gitea02.opendev.org' address: '38.108.68.122:3000' - name: 'gitea03.opendev.org'