From aeb0730c9566d157a754e7288829bdd2aa086887 Mon Sep 17 00:00:00 2001 From: Hoan To Date: Tue, 17 Jan 2023 12:00:16 +0100 Subject: [PATCH] DEV-805: added postgres-02 to backup hosts file in qa and prodnso --- group_vars/stage_prodnso/plain.yml | 5 +++++ group_vars/stage_qa/plain.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/group_vars/stage_prodnso/plain.yml b/group_vars/stage_prodnso/plain.yml index 9642ddb..76b8fab 100644 --- a/group_vars/stage_prodnso/plain.yml +++ b/group_vars/stage_prodnso/plain.yml @@ -141,6 +141,7 @@ shared_service_kube_ip: "{{ stage_private_ingress_loadbalancer_ip | default('-') shared_service_maria_hostname: "{{ stage }}-maria-01" shared_service_postgres_01_hostname: "{{ stage }}-postgres-01" +shared_service_postgres_02_hostname: "{{ stage }}-postgres-02" shared_service_elastic_stack_01_hostname: "{{ stage }}-elastic-stack-elastic-01" shared_service_elastic_stack_02_hostname: "{{ stage }}-elastic-stack-elastic-02" shared_service_elastic_stack_03_hostname: "{{ stage }}-elastic-stack-elastic-03" @@ -200,6 +201,10 @@ shared_service_hosts: [ ip: "{{ shared_service_pg_master_ip }}", name: "{{ shared_service_postgres_01_hostname }}" }, + { + ip: "{{ shared_service_pg_slave_ip }}", + name: "{{ shared_service_postgres_02_hostname }}" + }, { ip: "{{ shared_service_harbor_ip }}", name: "{{ shared_service_harbor_hostname }}" diff --git a/group_vars/stage_qa/plain.yml b/group_vars/stage_qa/plain.yml index 467f398..5dfd6d2 100644 --- a/group_vars/stage_qa/plain.yml +++ b/group_vars/stage_qa/plain.yml @@ -141,6 +141,7 @@ shared_service_kube_ip: "{{ stage_private_ingress_loadbalancer_ip | default('-') shared_service_maria_hostname: "{{ stage }}-maria-01" shared_service_postgres_01_hostname: "{{ stage }}-postgres-01" +shared_service_postgres_02_hostname: "{{ stage }}-postgres-02" shared_service_elastic_stack_01_hostname: "{{ stage }}-elastic-stack-elastic-01" shared_service_elastic_stack_02_hostname: "{{ stage }}-elastic-stack-elastic-02" shared_service_elastic_stack_03_hostname: "{{ stage }}-elastic-stack-elastic-03" @@ -200,6 +201,10 @@ shared_service_hosts: [ ip: "{{ shared_service_pg_master_ip }}", name: "{{ shared_service_postgres_01_hostname }}" }, + { + ip: "{{ shared_service_pg_slave_ip }}", + name: "{{ shared_service_postgres_02_hostname }}" + }, { ip: "{{ shared_service_harbor_ip }}", name: "{{ shared_service_harbor_hostname }}"