Guest User

Untitled

a guest
Oct 31st, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. scope: postgres
  2. namespace: /db/
  3. name: postgresql0
  4.  
  5. restapi:
  6. listen: 192.0.2.11:8008
  7. connect_address: 192.0.2.11:8008
  8.  
  9. etcd:
  10. host: 192.0.2.21:2379
  11.  
  12. bootstrap:
  13. dcs:
  14. ttl: 30
  15. loop_wait: 10
  16. retry_timeout: 10
  17. maximum_lag_on_failover: 1048576
  18. postgresql:
  19. use_pg_rewind: true
  20.  
  21. initdb:
  22. - encoding: UTF8
  23. - data-checksums
  24.  
  25. pg_hba:
  26. - host replication replicator 127.0.0.1/32 md5
  27. - host replication replicator 192.0.2.11/0 md5
  28. - host replication replicator 192.0.2.12/0 md5
  29. - host replication replicator 192.0.2.13/0 md5
  30. - host all all 0.0.0.0/0 md5
  31.  
  32. users:
  33. admin:
  34. password: admin
  35. options:
  36. - createrole
  37. - createdb
  38.  
  39. postgresql:
  40. listen: 192.0.2.11:5432
  41. connect_address: 192.0.2.11:5432
  42. data_dir: /data/patroni
  43. pgpass: /tmp/pgpass
  44. authentication:
  45. replication:
  46. username: replicator
  47. password: rep-pass
  48. superuser:
  49. username: postgres
  50. password: secretpassword
  51. parameters:
  52. unix_socket_directories: '.'
  53.  
  54. tags:
  55. nofailover: false
  56. noloadbalance: false
  57. clonefrom: false
  58. nosync: false
Add Comment
Please, Sign In to add comment