Add config_dir option for configuration files location (#466)

On debian, the configuration files (postgresql.conf, pg_hba.conf, etc) are not stored in the data directory. It would be great to be able to configure the location of this separate directory. Patroni could override existing configuration files where they are used to be.

The default is to store configuration files in the data directory. This setting is targeting custom installations like debian and any others moving configuration files out of the data directory.

Fixes #465
This commit is contained in:
jouir
2017-07-04 16:14:17 +02:00
committed by Alexander Kukushkin
parent b60f65a2ca
commit 4ca94a5dab
8 changed files with 32 additions and 15 deletions
+1
View File
@@ -61,6 +61,7 @@ postgresql:
connect_address: 127.0.0.1:5434
data_dir: data/postgresql2
# bin_dir:
# config_dir:
pgpass: /tmp/pgpass2
authentication:
replication: