Merge "Install collectd_ceilometer module during deployment"

This commit is contained in:
Jenkins 2017-02-10 15:46:56 +00:00 committed by Gerrit Code Review
commit 457fb7417e
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