status-db: enable backups only on production

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-12-06 11:54:15 +01:00
parent 1a5a25501e
commit b6b26c43cb
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
2 changed files with 7 additions and 4 deletions

View File

@ -2,13 +2,16 @@
postgres_ha_service_name: 'nim-waku-db'
postgres_ha_cont_image: 'postgres:15.1-alpine'
postgres_ha_cont_port: 5432
# Config
postgres_ha_is_master: true
postgres_ha_replica_enabled: false
# Backup
postgres_ha_backup: '{{ stage == "prod" }}'
postgres_ha_backup_enabled: '{{ stage == "prod" }}'
# Admin
postgres_ha_admin_user: 'postgres'
postgres_ha_admin_pass: '{{lookup("bitwarden", "fleets/status/"+stage+"/db/admin")}}'
# Databases
postgres_ha_databases:
- name: 'nim-waku'
user: 'nim-waku'

View File

@ -36,5 +36,5 @@
- name: infra-role-postgres-ha
src: git@github.com:status-im/infra-role-postgres-ha.git
version: 90fe472bcb91730846294f56c53b19a9857ae07a
version: c647a9f57deb791f1be724fe768be7bc9bf64921
scm: git