Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. scope: stampede
  2. name: pg1
  3.  
  4. restapi:
  5. listen: pg1:8008
  6. connect_address: pg1:8008
  7.  
  8. etcd:
  9. host: pg1:2379
  10.  
  11. bootstrap:
  12. dcs:
  13. ttl: 30
  14. loop_wait: 10
  15. retry_timeout: 10
  16. maximum_lag_on_failover: 1048576
  17. postgresql:
  18. use_pg_rewind: true
  19. use_slots: true
  20. parameters:
  21. wal_level: replica
  22. hot_standby: "on"
  23. max_wal_senders: 5
  24. max_replication_slots: 5
  25. wal_log_hints: "on"
  26. archive_mode: "on"
  27. archive_timeout: 600s
  28. archive_command: "cp -f %p /db/pg_archived/%f"
  29. recovery_conf:
  30. restore_command: "cp -f /db/pg_archived/%f %p"
  31. initdb:
  32. - encoding: UTF8
  33. - data-checksums
  34. pg_hba:
  35. - host replication rep_user 192.168.56.1/24 md5
  36. - host all all 192.168.56.1/24 md5
  37. - host all all 127.0.0.1/24 md5
  38. users:
  39. admin:
  40. password: adminpass
  41. options:
  42. - createrole
  43. - createdb
  44. postgresql:
  45. listen: pg1:5432
  46. connect_address: pg1:5432
  47. data_dir: /db/pgdata
  48. bin_dir: [VALUE FROM STEP 3]
  49. pgpass: /tmp/pgpass0
  50. authentication:
  51. replication:
  52. username: rep_user
  53. password: newpass
  54. superuser:
  55. username: postgres
  56. password: newpass
  57. parameters:
  58. unix_socket_directories: '/var/run/postgresql'
  59. external_pid_file: '/var/run/postgresql/9.6-main.pid'
  60. logging_collector: "on"
  61. log_directory: "/var/log/postgresql"
  62. log_filename: "postgresql-9.6-main.log"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement