summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-06-19 22:45:37 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-19 22:45:37 +0000
commitd5a34e001fe894b7f90d17d4a53dda53d2e8ef81 (patch)
treee2c18652cc9a92aefdfc60a40734edea48cec93e
parentf30199f018ae167df804c23079eb4bcec6c10f34 (diff)
parent0278419845567196882a600acdb7b61f4db3be41 (diff)
Merge "Enable mitogen to speed up Ansible execution"
-rwxr-xr-xkud/hosting_providers/vagrant/installer.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/kud/hosting_providers/vagrant/installer.sh b/kud/hosting_providers/vagrant/installer.sh
index c7715b59..708e51e2 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