From 0278419845567196882a600acdb7b61f4db3be41 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Thu, 6 Jun 2019 12:00:03 -0700 Subject: Enable mitogen to speed up Ansible execution Signed-off-by: Victor Morales Signed-off-by: Samuli Silvius Issue-ID: MULTICLOUD-301 Change-Id: I427145e26eabc92ab19b0a143b759113dbfbeeea --- kud/hosting_providers/vagrant/installer.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'kud/hosting_providers/vagrant') diff --git a/kud/hosting_providers/vagrant/installer.sh b/kud/hosting_providers/vagrant/installer.sh index 1d84646c..277ff0ce 100755 --- a/kud/hosting_providers/vagrant/installer.sh +++ b/kud/hosting_providers/vagrant/installer.sh @@ -102,7 +102,7 @@ function install_k8s { version=$(grep "kubespray_version" ${kud_playbooks}/kud-vars.yml | awk -F ': ' '{print $2}') local_release_dir=$(grep "local_release_dir" $kud_inventory_folder/group_vars/k8s-cluster.yml | awk -F "\"" '{print $2}') local tarball=v$version.tar.gz - sudo apt-get install -y sshpass + sudo apt-get install -y sshpass make unzip # install make to run mitogen target and unzip is mitogen playbook dependency _install_docker _install_ansible wget https://github.com/kubernetes-incubator/kubespray/archive/$tarball @@ -112,7 +112,10 @@ function install_k8s { sudo mkdir -p ${local_release_dir}/containers rm $tarball - sudo -E pip install -r $dest_folder/kubespray-$version/requirements.txt + pushd $dest_folder/kubespray-$version/ + sudo -E pip install -r ./requirements.txt + make mitogen + popd rm -f $kud_inventory_folder/group_vars/all.yml 2> /dev/null if [[ -n "${verbose}" ]]; then echo "kube_log_level: 5" | tee $kud_inventory_folder/group_vars/all.yml -- cgit 1.2.3-korg