Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scope: stampede
- name: pg1
- restapi:
- listen: pg1:8008
- connect_address: pg1:8008
- etcd:
- host: pg1:2379
- bootstrap:
- dcs:
- ttl: 30
- loop_wait: 10
- retry_timeout: 10
- maximum_lag_on_failover: 1048576
- postgresql:
- use_pg_rewind: true
- use_slots: true
- parameters:
- wal_level: replica
- hot_standby: "on"
- max_wal_senders: 5
- max_replication_slots: 5
- wal_log_hints: "on"
- archive_mode: "on"
- archive_timeout: 600s
- archive_command: "cp -f %p /db/pg_archived/%f"
- recovery_conf:
- restore_command: "cp -f /db/pg_archived/%f %p"
- initdb:
- - encoding: UTF8
- - data-checksums
- pg_hba:
- - host replication rep_user 192.168.56.1/24 md5
- - host all all 192.168.56.1/24 md5
- - host all all 127.0.0.1/24 md5
- users:
- admin:
- password: adminpass
- options:
- - createrole
- - createdb
- postgresql:
- listen: pg1:5432
- connect_address: pg1:5432
- data_dir: /db/pgdata
- bin_dir: [VALUE FROM STEP 3]
- pgpass: /tmp/pgpass0
- authentication:
- replication:
- username: rep_user
- password: newpass
- superuser:
- username: postgres
- password: newpass
- parameters:
- unix_socket_directories: '/var/run/postgresql'
- external_pid_file: '/var/run/postgresql/9.6-main.pid'
- logging_collector: "on"
- log_directory: "/var/log/postgresql"
- log_filename: "postgresql-9.6-main.log"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement