Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scope: mycluster
- name: db02
- restapi:
- listen: 127.0.0.1:8008
- connect_address: 127.0.0.1:8008
- etcd:
- host: 127.0.0.1:2379
- bootstrap:
- dcs:
- ttl: 30
- loop_wait: 10
- retry_timeout: 10
- maximum_lag_on_failover: 1048576
- postgresql:
- use_pg_rewind: true
- parameters:
- initdb:
- - encoding: UTF8
- - data-checksums
- pg_hba:
- - host replication replicator 127.0.0.1/32 md5
- - host replication replicator 172.27.167.60/30 md5
- - host all all 0.0.0.0/0 md5
- # Some additional users users which needs to be created after initializing new cluster
- users:
- admin:
- password: admin
- options:
- - createrole
- - createdb
- postgresql:
- listen: 172.27.167.62:5432
- connect_address: 172.27.167.62:5432
- data_dir: /var/lib/pgsql/9.5/data/mycluster
- bin_dir: /usr/pgsql-9.5/bin
- pgpass: /tmp/pgpass0
- callbacks:
- on_role_change: /usr/local/bin/patroni_configure_vip.sh
- authentication:
- replication:
- username: replicator
- password: *****
- superuser:
- username: postgres
- password: *****
- parameters:
- unix_socket_directories: '.'
- max_connections: 300
- tags:
- nofailover: false
- noloadbalance: false
- clonefrom: false
- nosync: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement