Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,26 @@ cluster_domain="${cluster_name}.${base_domain}"
export AWS_SHARED_CREDENTIALS_FILE=${CLUSTER_PROFILE_DIR}/.awscred
export AWS_MAX_ATTEMPTS=7
export AWS_RETRY_MODE=adaptive
export HOME=/tmp

if ! command -v aws &> /dev/null
then

echo "$(date -u --rfc-3339=seconds) - Install AWS cli..."
python_version=$(python -c 'import sys;print(sys.version_info.major)')
export PATH="${HOME}/.local/bin:${PATH}"
if [[ $python_version -eq 2 ]]
then
easy_install --user pip # our Python 2.7.5 is even too old for ensurepip
pip install --user awscli
elif [[ $python_version -eq 3 ]]
then
pip3 install --user awscli
else
echo "$(date -u --rfc-3339=seconds) - No pip available exiting..."
exit 1
fi
fi

# Load array created in setup-vips:
# 0: API
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ref:
as: ipi-conf-vsphere-dns
from: upi-installer
from: tools
commands: ipi-conf-vsphere-dns-commands.sh
resources:
requests:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ref:
as: ipi-conf-vsphere
from: base
from: tools
commands: ipi-conf-vsphere-commands.sh
resources:
requests:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ref:
as: ipi-conf-vsphere-vips
from: upi-installer
from: tools
commands: ipi-conf-vsphere-vips-commands.sh
resources:
requests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@ set -o pipefail
export AWS_SHARED_CREDENTIALS_FILE=${CLUSTER_PROFILE_DIR}/.awscred
export AWS_MAX_ATTEMPTS=7
export AWS_RETRY_MODE=adaptive
export HOME=/tmp

if ! command -v aws &> /dev/null
then

echo "$(date -u --rfc-3339=seconds) - Install AWS cli..."
python_version=$(python -c 'import sys;print(sys.version_info.major)')
export PATH="${HOME}/.local/bin:${PATH}"
if [[ $python_version -eq 2 ]]
then
easy_install --user pip # our Python 2.7.5 is even too old for ensurepip
pip install --user awscli
elif [[ $python_version -eq 3 ]]
then
pip3 install --user awscli
else
echo "$(date -u --rfc-3339=seconds) - No pip available exiting..."
exit 1
fi
fi

HOSTED_ZONE_ID="$(cat "${SHARED_DIR}/hosted-zone.txt")"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ref:
as: ipi-deprovision-vsphere-dns
from: upi-installer
from: tools
commands: ipi-deprovision-vsphere-dns-commands.sh
resources:
requests:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ref:
as: ipi-deprovision-vsphere
from: upi-installer
from: installer
commands: ipi-deprovision-vsphere-commands.sh
resources:
requests:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ref:
as: ipi-deprovision-vsphere-vips
from: upi-installer
from: tools
commands: ipi-deprovision-vsphere-vips-commands.sh
resources:
requests:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ref:
as: ipi-install-vsphere
from: upi-installer
from: installer
commands: ipi-install-vsphere-commands.sh
resources:
requests:
Expand Down