Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.23 KB | None | 0 0
  1. scope: postgres
  2. namespace: /db/
  3. name: postgresql0
  4.  
  5. restapi:
  6.   listen: 127.0.0.1:8008
  7.   connect_address: 127.0.0.1:8008
  8.  
  9. etcd:
  10.     host: 10.128.0.23: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 10.128.0.26/0 md5
  28.     - host replication replicator 10.128.0.18/0 md5
  29.     - host all all 0.0.0.0/0 md5
  30.  
  31.     users:
  32.         admin:
  33.             password: admin
  34.             options:
  35.                - createrole
  36.                 - createdb
  37.  
  38. postgresql:
  39.     listen: 127.0.0.1:5432
  40.     connect_address: 127.0.0.1:5432
  41.     data_dir: /var/lib/postgresql/10/main/patroni
  42.     pgpass: /tmp/pgpass
  43.     authentication:
  44.         replication:
  45.             username: replicator
  46.             password: replicator
  47.         superuser:
  48.             username: postgres
  49.             password: postgres
  50.     parameters:
  51.         unix_socket_directories: '.'
  52.  
  53. tags:
  54.     nofailover: false
  55.     noloadbalance: false
  56.     clonefrom: false
  57.     nosync: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement