File tree Expand file tree Collapse file tree 1 file changed +13
-18
lines changed Expand file tree Collapse file tree 1 file changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -183,30 +183,20 @@ bootstrap:
183
183
archive_mode: " on"
184
184
archive_timeout: 600s
185
185
archive_command: " cp -f %p /home/postgres/archived/%f"
186
+
187
+ pg_hba: # Add following lines to pg_hba.conf after running 'initdb'
188
+ - host replication replicator 127.0.0.1/32 trust
189
+ - host replication replicator 0.0.0.0/0 md5
190
+ - host all all 0.0.0.0/0 md5
191
+ - host all all ::0/0 md5
192
+ recovery_conf:
193
+ restore_command: cp /home/postgres/archived/%f %p
186
194
187
195
# some desired options for 'initdb'
188
196
initdb: # Note: It needs to be a list (some options need values, others are switches)
189
197
- encoding: UTF8
190
198
- data-checksums
191
199
192
- pg_hba: # Add following lines to pg_hba.conf after running 'initdb'
193
- - host replication replicator 127.0.0.1/32 trust
194
- - host replication replicator 0.0.0.0/0 md5
195
- - host all all 0.0.0.0/0 md5
196
- - host all all ::0/0 md5
197
-
198
- # Some additional users which needs to be created after initializing new cluster
199
- users:
200
- admin:
201
- password: qaz123
202
- options:
203
- - createrole
204
- - createdb
205
- percona:
206
- password: qaz123
207
- options:
208
- - createrole
209
- - createdb
210
200
211
201
postgresql:
212
202
cluster_name: cluster_1
@@ -229,6 +219,11 @@ postgresql:
229
219
basebackup:
230
220
checkpoint: 'fast'
231
221
222
+ watchdog:
223
+ mode: required # Allowed values: off, automatic, required
224
+ device: /dev/watchdog
225
+ safety_margin: 5
226
+
232
227
tags:
233
228
nofailover: false
234
229
noloadbalance: false
You can’t perform that action at this time.
0 commit comments