mirror of https://github.com/zulip/zulip.git
puppet: Switch env-wal-e to use wal-g rather than wal-e.
wal-g is the modern reimplementation of wal-e that supports current postgres. It requires a bit of extra configuration to specify the AWS region.
This commit is contained in:
parent
fcca4a38b6
commit
c43b3d95e2
|
@ -3,6 +3,9 @@ if [ -z "$ZULIP_SECRETS_CONF" ]; then
|
|||
ZULIP_SECRETS_CONF=/etc/zulip/zulip-secrets.conf
|
||||
fi
|
||||
|
||||
export PGHOST=/var/run/postgresql/
|
||||
AWS_REGION=$(crudini --get "$ZULIP_SECRETS_CONF" secrets s3_region)
|
||||
export AWS_REGION
|
||||
AWS_ACCESS_KEY_ID=$(crudini --get "$ZULIP_SECRETS_CONF" secrets s3_backups_key)
|
||||
export AWS_ACCESS_KEY_ID
|
||||
AWS_SECRET_ACCESS_KEY=$(crudini --get "$ZULIP_SECRETS_CONF" secrets s3_backups_secret_key)
|
||||
|
@ -12,4 +15,4 @@ if ! s3_backups_bucket=$(crudini --get "$ZULIP_SECRETS_CONF" secrets s3_backups_
|
|||
exit 1
|
||||
fi
|
||||
export WALE_S3_PREFIX=s3://$s3_backups_bucket
|
||||
exec /usr/local/bin/wal-e "$@"
|
||||
exec /usr/local/bin/wal-g "$@"
|
||||
|
|
Loading…
Reference in New Issue