From 5a32910539a72ed74e21e3b7fbbf4cb60b287d5b Mon Sep 17 00:00:00 2001 From: Pranav Salunke <dguitarbite@gmail.com> Date: Sun, 10 Aug 2014 13:37:19 +0530 Subject: [PATCH] Adds horizon scripts for training labs Adds horizon scripts for training labs which will install OpenStack dashboard. Change-Id: I824c5571410411f2f17671657c90d463c2846ee2 Partial-Bug: 1312764 Implements: blueprint openstack-training-labs --- labs/config/scripts.controller | 1 + labs/scripts/setup_horizon.sh | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100755 labs/scripts/setup_horizon.sh diff --git a/labs/config/scripts.controller b/labs/config/scripts.controller index a93abe0e..7120657d 100644 --- a/labs/config/scripts.controller +++ b/labs/config/scripts.controller @@ -2,6 +2,7 @@ scripts apt_install_mysql.sh scripts setup_keystone.sh scripts setup_glance.sh +scripts setup_horizon.sh scripts shutdown.sh boot snapshot "pre-installed" diff --git a/labs/scripts/setup_horizon.sh b/labs/scripts/setup_horizon.sh new file mode 100755 index 00000000..2f093022 --- /dev/null +++ b/labs/scripts/setup_horizon.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +TOP_DIR=$(cd $(dirname "$0")/.. && pwd) +source "$TOP_DIR/config/paths" +source "$LIB_DIR/functions.guest" +exec_logfile + +indicate_current_auto + +#------------------------------------------------------------------------------ +# Set up OpenStack Dashboard (horizon). +#------------------------------------------------------------------------------ + +echo "Installing horizon." +sudo apt-get install -y openstack-dashboard memcached + +echo "Purging Ubuntu theme." +sudo dpkg --purge openstack-dashboard-ubuntu-theme + +echo "Reloading apache and memcached service." +sudo service apache2 restart +sudo service memcached restart