training-guides/labs/scripts/setup_horizon.sh
Pranav Salunke 5a32910539 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
2014-08-10 13:01:59 +02:00

22 lines
633 B
Bash
Executable File

#!/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