summaryrefslogtreecommitdiffstats
path: root/lib/post-install-functions.sh
diff options
context:
space:
mode:
authorManjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>2017-01-23 14:12:12 -0500
committerManjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>2017-02-06 22:27:27 +0000
commitb5687496eacdb4e48a3134b0c338244343c95a01 (patch)
treed6c683c9038c1f0c253ec6fb847cf15f04149b6c /lib/post-install-functions.sh
parentb8cad752ff9e3685c3b6490e7a4ef3a6862e3767 (diff)
Adding yardstick installation using docker container
This patch adds yardstick option to deploy settings, installs docker and yardstick image to undercloud. Change-Id: I3a2a1d6bcdfe5becd11d6d9f22218837c572d5da Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
Diffstat (limited to 'lib/post-install-functions.sh')
-rwxr-xr-xlib/post-install-functions.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/post-install-functions.sh b/lib/post-install-functions.sh
index 55b4fe4d..e2d9327d 100755
--- a/lib/post-install-functions.sh
+++ b/lib/post-install-functions.sh
@@ -202,6 +202,16 @@ EOI
overcloud_connect "compute0" "sudo sh -c 'cd /var/opt/vsperf/systems/ && ./build_base_machine.sh 2>&1 > /var/log/vsperf.log'"
fi
+ # install docker and pull yardstick image
+ if [[ "${deploy_options_array['yardstick']}" == 'True' ]]; then
+ ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
+sudo yum install docker -y
+sudo systemctl start docker
+sudo systemctl enable docker
+sudo docker pull opnfv/yardstick
+EOI
+ fi
+
# Collect deployment logs
ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
mkdir -p ~/deploy_logs