pip_install collectd_ceilometer module - Install libvirt-* requirements from the package manager so pip can build This ensures is actually installed from teh requirements.txt file, in relation to the related bug. Change-Id: Iba26b1da863288e789f68646dee6a7f62fd6c160 Partial-Bug: #1644254
42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
local xtrace=$(set +o | grep xtrace)
|
|
set -o xtrace
|
|
|
|
# Initial source of lib script
|
|
source $COLLECTD_CEILOMETER_DIR/devstack/libs/collectd
|
|
|
|
case $1 in
|
|
"stack")
|
|
case $2 in
|
|
"pre-install")
|
|
install_requirements
|
|
;;
|
|
"install")
|
|
pip_install $COLLECTD_CEILOMETER_DIR
|
|
# install system package
|
|
install_collectd
|
|
# adapt collectd.conf
|
|
adapt_collectd_conf
|
|
;;
|
|
"post-config")
|
|
# start collectd service
|
|
start_collectd
|
|
;;
|
|
"extra")
|
|
# no-op
|
|
:
|
|
;;
|
|
esac
|
|
;;
|
|
"unstack")
|
|
# stop the service and restore original /etc/collect.conf
|
|
stop_collectd
|
|
restore_collectd_conf
|
|
;;
|
|
"clean")
|
|
# no cleaning required as of now
|
|
:
|
|
;;
|
|
esac
|
|
|
|
$xtrace
|