Add EnvironmentFile directive (#746)

Add an EnvironmentFile directive to read in a configuration file with environment variables. The "-" prefix means it can proceed if the file doesn't exist.

This would allow users to keep sensitive information like the SUPERUSER/REPLICATION passwords in the config file separate from a YAML file that might be deployed from source control.
This commit is contained in:
Don Seiler
2018-07-23 20:31:47 +03:00
committed by Alexander Kukushkin
parent 26466237b9
commit f5927bad70
+3
View File
@@ -11,6 +11,9 @@ Type=simple
User=postgres
Group=postgres
# Read in configuration file if it exists, otherwise proceed
EnvironmentFile=-/etc/patroni_env.conf
WorkingDirectory=~
# Where to send early-startup messages from the server