54 lines
1011 B
Bash
Executable File
54 lines
1011 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# ``upgrade_packages``
|
|
|
|
# Keep track of the grenade directory
|
|
GRENADE_DIR=$(cd $(dirname "$0") && pwd)
|
|
|
|
# Import common functions
|
|
source $GRENADE_DIR/functions
|
|
|
|
# Determine what system we are running on. This provides ``os_VENDOR``,
|
|
# ``os_RELEASE``, ``os_UPDATE``, ``os_PACKAGE``, ``os_CODENAME``
|
|
# and ``DISTRO``
|
|
GetDistro
|
|
|
|
# Source params
|
|
source $GRENADE_DIR/grenaderc
|
|
|
|
# For debugging
|
|
set -o xtrace
|
|
|
|
|
|
# Upgrade Dependencies
|
|
# ====================
|
|
|
|
# Glance
|
|
GLANCE_PIPS=""
|
|
|
|
# Nova
|
|
NOVA_PIPS=""
|
|
|
|
# Horizon
|
|
HORIZON_PIPS=""
|
|
|
|
# Quantum
|
|
QUANTUM_PIPS=""
|
|
|
|
# SQLAlchemy is 0.7.8 ((cinder, nova)
|
|
PIPS="$GLANCE_PIPS $HORIZON_PIPS $NOVA_PIPS $QUANTUM_PIPS"
|
|
|
|
#pip_install $PIPS
|
|
|
|
# Install package requirements
|
|
if [[ "$os_PACKAGE" = "deb" ]]; then
|
|
install_package $(get_packages $TARGET_DEVSTACK_DIR/files/apts)
|
|
else
|
|
install_package $(get_packages $TARGET_DEVSTACK_DIR/files/rpms)
|
|
fi
|
|
|
|
# Restart Services
|
|
sudo service rabbitmq-server stop
|
|
sudo killall epmd
|
|
sudo service rabbitmq-server start
|