Skip to content

Commit 02f20f1

Browse files
committed
Enable ipv6 on AWS
1 parent 042af71 commit 02f20f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

postgres-appliance/build_scripts/patroni_wale.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if [ "$DEMO" != "true" ]; then
4040
find /usr/share/python-babel-localedata/locale-data -type f ! -name 'en_US*.dat' -delete
4141

4242
pip3 install filechunkio protobuf \
43-
'git+https://github.com/zalando-pg/wal-e.git#egg=wal-e[aws,google,swift]' \
43+
'git+https://github.com/zalando-pg/wal-e.git@ipv6-imds#egg=wal-e[aws,google,swift]' \
4444
'git+https://github.com/zalando/pg_view.git@master#egg=pg-view'
4545

4646
# https://github.com/wal-e/wal-e/issues/318

postgres-appliance/runit/patroni/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ then
2424
fi
2525

2626
# Only small subset of environment variables is allowed. We don't want accidentally disclose sensitive information
27-
for E in $(printenv -0 | tr '\n' ' ' | sed 's/\x00/\n/g' | grep -vE '^(KUBERNETES_(SERVICE|PORT|ROLE)[_=]|((POD_(IP|NAMESPACE))|HOSTNAME|PATH|PGHOME|LC_ALL|ENABLE_PG_MON)=)' | sed 's/=.*//g'); do
27+
for E in $(printenv -0 | tr '\n' ' ' | sed 's/\x00/\n/g' | grep -vE '^((AWS_EC2_METADATA_SERVICE_ENDPOINT|KUBERNETES_(SERVICE|PORT|ROLE))[_=]|((POD_(IP|NAMESPACE))|HOSTNAME|PATH|PGHOME|LC_ALL|ENABLE_PG_MON)=)' | sed 's/=.*//g'); do
2828
unset $E
2929
done
3030

0 commit comments

Comments
 (0)