18 Commits

Author SHA1 Message Date
Sameer Naik 38dc995884 added PG_PASSWORD variable to specify password for postgres user
Refer #43
2015-12-11 15:33:59 +05:30
Sameer Naik 60a249dd7d ensure required defaults are set at every start 2015-12-09 22:33:39 +05:30
Sameer Naik c1cce0328c disable trigger_file option from recovery.conf
Triggering of a slave to stop replication and enable writing works.
However if a second slave (with data persistence) is reconfigured to
use the first slave (triggered) as the master, the second slave cannot
replicate the data.

At the moment the only way to convert a slave to a master is to stop it
and start it as a master in which case the above issue is not seen.

To avoid users from trying to trigger a slave, we removed the config
altogether until the issue can be resolved.
2015-11-30 11:57:44 +05:30
Sameer Naik ba9d02ecb3 escape & characters in set_postgresql_param 2015-11-29 19:06:10 +05:30
Sameer Naik ee497d68d0 sed variable expansion works by default when double quotes are used 2015-11-29 19:05:08 +05:30
Sameer Naik cdad6abd5a print value being set in recovery.conf 2015-11-29 11:46:03 +05:30
Sameer Naik d0904a4ca1 set default values of REPLICATION_PORT and REPLICATION_SSLMODE in env-defaults 2015-11-29 11:43:44 +05:30
Sameer Naik a1ca18b780 recovery.conf can exist only on a slave node
It's existence otherwise cause issues while replication users, as such
the `configure_recovery` function is promoted higher in the
initialization sequence.
2015-11-28 21:18:16 +05:30
Sameer Naik 22c969c88c removed launch sequence from functions import 2015-11-28 14:51:18 +05:30
Sameer Naik 8458c2a3ca user and database can only be created on the master node 2015-11-28 14:22:46 +05:30
Sameer Naik 1f87e4aa1b removed PG_LOCALE option (doesn't work!) 2015-11-28 13:13:44 +05:30
Sameer Naik 22dba65610 add support for creating backups using pg_basebackup 2015-11-27 16:48:24 +05:30
Sameer Naik 73be444cea added missing ;; to case 2015-11-27 16:24:07 +05:30
Sameer Naik ce2caf3937 DB_LOCALE config parameter renamed to PG_LOCALE 2015-11-27 15:02:50 +05:30
Sameer Naik 5e09110558 configure logging options on first run 2015-11-27 11:04:52 +05:30
Sameer Naik 7f1e051f1a remove extra whitespace 2015-11-26 22:29:20 +05:30
Sameer Naik 978c70a78a moved default script variables to env-defaults 2015-11-26 21:06:13 +05:30
Sameer Naik faaa87cc64 separated out entrypoint.sh functions to a functions bash module 2015-11-26 21:04:17 +05:30