Install collectd_ceilometer module during deployment

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
This commit is contained in:
Emma Foley 2017-01-19 19:50:02 +00:00
parent 7231032cba
commit 7ff2e4252f
2 changed files with 12 additions and 3 deletions

View File

@ -17,7 +17,16 @@ function stop_collectd {
fi
}
# install collectd service
function install_requirements {
echo "Installing pre-resquisites"
if is_ubuntu; then
install_package libvirt-bin libvirt-dev python-libvirt
elif is_fedora; then
install_package libvirt libvirt-devel libvirt-python
fi
}
# install collectd
function install_collectd {
if [[ "$COLLECTD_INSTALL" == True ]]; then
if is_fedora || is_ubuntu; then

View File

@ -8,10 +8,10 @@ set -o xtrace
"stack")
case $2 in
"pre-install")
# no-op
:
install_requirements
;;
"install")
pip_install $COLLECTD_CEILOMETER_DIR
# install system package
install_collectd
# adapt collectd.conf