2023-10-10 13:04:36 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
postgres_ha_service_name: 'nim-waku-db'
|
|
|
|
postgres_ha_cont_image: 'postgres:15.1-alpine'
|
|
|
|
|
|
|
|
postgres_ha_is_master: true
|
2024-01-04 18:04:50 +00:00
|
|
|
postgres_ha_replica_enabled: false
|
2023-10-10 13:04:36 +00:00
|
|
|
postgres_ha_replica_allowed_addresses: []
|
|
|
|
|
|
|
|
postgres_ha_admin_user: 'postgres'
|
2024-09-26 16:14:56 +00:00
|
|
|
postgres_ha_admin_pass: '{{lookup("vault", "database", field="db-admin-password")}}'
|
2023-10-10 13:04:36 +00:00
|
|
|
|
|
|
|
postgres_ha_databases:
|
|
|
|
- name: 'nim-waku'
|
|
|
|
user: 'nim-waku'
|
2024-09-26 16:14:56 +00:00
|
|
|
pass: '{{lookup("vault", "database", field="db-password")}}'
|
2023-10-10 13:04:36 +00:00
|
|
|
|
2023-11-16 10:12:20 +00:00
|
|
|
postgres_ha_backup: false
|
|
|
|
|
2024-10-11 10:31:47 +00:00
|
|
|
postgres_ha_metrics_exporter_cont_port: 9187
|
|
|
|
|
2023-10-10 13:04:36 +00:00
|
|
|
# Open PostgreSQL Port
|
|
|
|
open_ports_default_comment: '{{ postgres_ha_service_name }}'
|
|
|
|
open_ports_list:
|
2024-10-11 10:31:47 +00:00
|
|
|
postgres:
|
|
|
|
- { port: '{{ postgres_ha_cont_port }}', ipset: '{{ env }}.{{ stage }}', iifname: 'wg0' }
|
2024-10-18 13:54:01 +00:00
|
|
|
- { port: '{{ postgres_ha_metrics_exporter_cont_port }}', ipset: 'hq.metrics', iifname: 'wg0' }
|
2024-09-17 13:40:13 +00:00
|
|
|
|
|
|
|
# Use the 30% of RAM for shared memory
|
2024-10-30 10:39:34 +00:00
|
|
|
postgres_ha_share_memory: '{{ (ansible_memtotal_mb * 0.3) | int }}m'
|