forked from EnterpriseDB/edb-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
138 lines (122 loc) · 3.46 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
---
# efm credentials
os: ""
pg_version: 14
efm_version: 4.5
efm_eager_failover: false
efm_install_version: "{{ efm_version | replace('.', '') }}"
pg_instance_name: main
disable_logging: true
force_efm_install: false
pass_dir: "~/.edb"
use_hostname: true
update_etc_file: true
use_patroni: false
pg_efm_user: "efm"
pg_efm_user_password: ""
pg_ssl: true
efm_nodes_list: ""
efm_cluster_name: "{{ pg_instance_name }}"
efm_service: "edb-efm-{{ efm_cluster_name }}-{{ efm_version }}"
edb_efm_lock_file: "/var/lock/{{ efm_cluster_name }}-{{ efm_version }}/{{ efm_cluster_name }}.lock"
# common variables require for the role
etc_hosts_lists: []
primary_public_ip: ""
primary_private_ip: ""
input_password: ""
pg_allow_ip_addresses: []
efm_port: 7800
efm_admin_port: 7809
efm_default_parameters:
- {name: db.user, value: "{{ pg_efm_user }}"}
- {name: db.port, value: "{{ pg_port }}"}
- {name: db.database, value: "{{ pg_efm_database }}"}
- {name: db.service.owner, value: "{{ pg_owner }}"}
- {name: db.service.name, value: "{{ pg_service }}"}
- {name: db.bin, value: "{{ pg_bin_path }}"}
- {name: db.recovery.dir, value: "{{ pg_data }}"}
- {name: db.data.dir, value: "{{ pg_data }}"}
- {name: user.email, value: "[email protected]"}
- {name: auto.allow.hosts, value: true}
- {name: stable.nodes.file, value: true}
- {name: local.period, value: "3"}
- {name: local.timeout, value: "5"}
- {name: local.timeout.final, value: "5"}
- {name: remote.timeout, value: "5"}
- {name: node.timeout, value: "5"}
- {name: admin.port, value: "{{ efm_admin_port }}"}
efm_physical_slot_param:
- {name: update.physical.slots.period, value: "5"}
efm_cascaded_replica_param:
- {name: promotable, value: false}
- {name: auto.reconfigure, value: false}
efm_eager_failover_params:
- {name: primary.shutdown.as.failure, value: true}
- {name: enable.stop.cluster, value: false}
# example of efm_custom_parameters:
# efm_parameters:
# - name: script.notification
# value: "/usr/edb/efm-3.10/bin/notification.sh"
efm_parameters: ""
efm_properties: "/etc/edb/efm-{{ efm_version }}/{{ efm_cluster_name }}.properties"
efm_node_file: "/etc/edb/efm-{{ efm_version }}/{{ efm_cluster_name }}.nodes"
efm_bin_path: "/usr/edb/efm-{{ efm_version }}/bin"
efm_packages_redhat:
- java-1.8.0-openjdk
- mailx
- edb-efm{{ efm_install_version }}
efm_packages_debian:
- bsd-mailx
- openjdk-8-jdk
- edb-efm{{ efm_install_version }}
# Enable efm-api-node-state deployment
efm_api_node_state: false
efm_api_node_state_version: "0.2.0"
efm_api_node_state_port: 8000
efm_api_node_state_listen_addr: "0.0.0.0"
efm_api_node_state_supported_os:
- CentOS7
- RedHat7
- OracleLinux7
efm_api_download_url: "https://github.com/EnterpriseDB/efm-api-node-state/releases/download/v{{ efm_api_node_state_version }}"
efm_api_node_state_rpm: "efm-api-node-state-{{ efm_api_node_state_version }}-1.el7.x86_64.rpm"
# Integration with pgpoolII
pgpool2_version: 4.1
efm_pgpool2_integration: false
pcp_admin_user: "pcpadmin"
pcp_admin_user_password: ""
pcp_passfile: "/var/efm/.pcppass"
pcp_passfile_owner: "efm"
pcp_passfile_group: "efm"
pcp_passfile_mode: "0600"
pgpool2_pcp_port: 9898
supported_os:
- CentOS7
- CentOS8
- RedHat7
- RedHat8
- Ubuntu20
- Debian9
- Debian10
- Rocky8
- AlmaLinux8
- OracleLinux7
supported_pg_type:
- EPAS
- PG
supported_pg_version:
- 10
- 11
- 12
- 13
- 14
- 15
supported_efm_version:
- "4.6"
- "4.5"
- "4.4"
- "4.3"
- "4.2"
- "4.1"
- "4.0"
- "3.10"