From a841cfeec37e5ddab4d649adc9571b63accc2ef2 Mon Sep 17 00:00:00 2001 From: Feike Steenbergen Date: Wed, 18 May 2016 11:20:25 +0200 Subject: [PATCH] Further restructuring of patroni.yml --- specs/patroni_bootstrap.yml | 38 ++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/specs/patroni_bootstrap.yml b/specs/patroni_bootstrap.yml index 0abc484d..6348649a 100644 --- a/specs/patroni_bootstrap.yml +++ b/specs/patroni_bootstrap.yml @@ -30,15 +30,24 @@ bootstrap: - host replication replicator 127.0.0.1/32 md5 - host all all 0.0.0.0/0 md5 # - hostssl all all 0.0.0.0/0 md5 - replication: - username: replicator - password: rep-pass - superuser: - username: postgres - password: zalando - admin: - username: admin - password: admin + users: + admin: + password: admin + options: + - createrole + - createdatabase + &replication_username replicator + password: &replication_password replicada + options: + - replication + &superuser_username postgres: + password: &superuser_password zalando + options: + - superuser + pg_rewind: + enabled: true + username: &superuser_username + password: &superuser_password postgresql: archive_mode: "on" wal_level: hot_standby @@ -88,15 +97,18 @@ etcd: # - host3 postgresql: name: postgresql0 - scope: *scope listen: 127.0.0.1:5432 connect_address: 127.0.0.1:5432 data_dir: data/postgresql0 use_slots: True pgpass: /tmp/pgpass0 - pg_rewind: - username: postgres - password: zalando + authentication: + replication: + username: *replication_username + password: *replication_password + superuser: + username: *superuser_username + password: *superuser_password create_replica_method: - basebackup # - wal_e