Emma Foley 912c941207 Change COLLECTD_DIR to COLLECTD_CEILOMTER_DIR
- change the name of the var used to store the
  collectd-ceilometer-plugin so that it doesn't conflict with
  OpenStack naming conventions later on.
- There is no end-user impact as this is set and used internally.

Closes-Bug #1603996

Change-Id: I5abd39a323aaddc66894e0a3ec3e475c0960d0dc
2016-07-19 13:30:32 +01:00

40 lines
980 B
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 system package
install_collectd
;;
"install")
# 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