diff options
author | Victor Morales <victor.morales@intel.com> | 2019-06-06 12:00:03 -0700 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2019-06-07 09:41:42 -0700 |
commit | 0278419845567196882a600acdb7b61f4db3be41 (patch) | |
tree | 6672ec6a0afeac764d3ac8ee50127833ebba8019 /kud/hosting_providers/vagrant/installer.sh | |
parent | f006c55c0793a0cacac5aa45ba7f13fd5c6ef5f4 (diff) |
Enable mitogen to speed up Ansible execution
Signed-off-by: Victor Morales <victor.morales@intel.com>
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Issue-ID: MULTICLOUD-301
Change-Id: I427145e26eabc92ab19b0a143b759113dbfbeeea
Diffstat (limited to 'kud/hosting_providers/vagrant/installer.sh')
-rwxr-xr-x | kud/hosting_providers/vagrant/installer.sh | 7 |
1 files changed, 5 insertions, 2 deletions
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 |