aboutsummaryrefslogtreecommitdiffstats
path: root/kud/hosting_providers/containerized
diff options
context:
space:
mode:
authorTodd Malsbary <todd.malsbary@intel.com>2021-07-08 14:04:20 -0700
committerTodd Malsbary <todd.malsbary@intel.com>2021-07-16 11:19:26 -0700
commit7e85528a2c9c6669aa0857d8b9bfaa1e698c2fbc (patch)
tree242cbe6b05bf8de67a07449cc0382c1f1d8f1241 /kud/hosting_providers/containerized
parent78ea22d85af1c2d20dc94453948deedf640385a9 (diff)
Update KUD to python3
Issue-ID: MULTICLOUD-1375 Signed-off-by: Todd Malsbary <todd.malsbary@intel.com> Change-Id: I0433a55ef2ac9caba976a267fa9e1f41d5353248
Diffstat (limited to 'kud/hosting_providers/containerized')
-rwxr-xr-xkud/hosting_providers/containerized/installer.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/kud/hosting_providers/containerized/installer.sh b/kud/hosting_providers/containerized/installer.sh
index 4ed1833b..cdb43dd5 100755
--- a/kud/hosting_providers/containerized/installer.sh
+++ b/kud/hosting_providers/containerized/installer.sh
@@ -33,6 +33,7 @@ function install_prerequisites {
unzip \
vim \
wget
+ update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
}
# _install_ansible() - Install and Configure Ansible program
@@ -40,7 +41,7 @@ function _install_ansible {
local version=$(grep "ansible_version" ${kud_playbooks}/kud-vars.yml |
awk -F ': ' '{print $2}')
mkdir -p /etc/ansible/
- pip3 install --no-cache-dir ansible==$version
+ pip install --no-cache-dir ansible==$version
}
function install_kubespray {
@@ -59,7 +60,7 @@ function install_kubespray {
rm $tarball
pushd $dest_folder/kubespray-$version/
- pip3 install --no-cache-dir -r ./requirements.txt
+ pip install --no-cache-dir -r ./requirements.txt
make mitogen
popd
rm -f $kud_inventory_folder/group_vars/all.yml 2> /dev/null