forked from EnterpriseDB/edb-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yml
71 lines (61 loc) · 1.6 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
pg_version: 14
pg_instance_name: main
disable_logging: true
use_hostname: true
update_etc_file: true
use_patroni: false
# setting validate_only to true allows you to validate setup on an existing node
# use_validation flag applies to deployment configuration and validation after setup
validate_only: false
use_validation: true
# Database name used by repmgr
pg_repmgr_dbname: repmgr
# Database username used by repmgr
pg_repmgr_user: repmgr
# Password of the database user, will be generated if empty
pg_repmgr_user_password: ""
# Replication user created by setup_replication
pg_replication_user: repuser
# Repmgr log level
repmgr_log_level: INFO
# Repmgr log facility
repmgr_log_facility: STDERR
# Repmgr log file path when using STDERR
repmgr_log_file: /var/log/repmgr/repmgr.log
# Repmgr failover mode, could be 'automatic' for automatic failover, or
# 'manual'
repmgr_failover: automatic
# Number of connection attemps in case of failure before triggering an
# automatic failover.
repmgr_reconnect_attempts: 3
# Interval of time, in seconds, between each reconnect attemps
repmgr_reconnect_interval: 5
repmgr_update_slot_query: >-
update repmgr.nodes as n set slot_name=s.slot_name from pg_replication_slots s, pg_stat_replication r
where r.pid=s.active_pid and n.node_name=r.application_name and n.type='standby'
# SSH port
ssh_port: 22
etc_hosts_lists: []
supported_os:
- CentOS7
- CentOS8
- RedHat7
- RedHat8
- RedHat9
- Ubuntu20
- Ubuntu22
- Debian9
- Debian10
- Rocky8
- Rocky9
- OracleLinux7
supported_pg_type:
- PG
supported_pg_version:
- 10
- 11
- 12
- 13
- 14
- 15