Non-interactive mode for `replicate:geo:database` password input
Description
Using gitlab-ctl replicate:geo:database
is going to prompt for the database password in an interactive mode.
In order to write automated tests, we need to pass a password either using --password
option or passing password in an environment variable PG_REPLICATION_PASSWORD
. An alternative is not using STDIN.getpass
to make it possible to pipe the password in, but using ENV is much more simple probably.
We discussed this with @nick.thomas, and because we don't want people to use --password
we are going to use PG_REPLICATION_PASSWORD
.
/cc @marin