Merge "Install collectd_ceilometer module during deployment"
This commit is contained in:
commit
457fb7417e
@ -17,7 +17,16 @@ function stop_collectd {
|
|||||||
fi
|
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 {
|
function install_collectd {
|
||||||
if [[ "$COLLECTD_INSTALL" == True ]]; then
|
if [[ "$COLLECTD_INSTALL" == True ]]; then
|
||||||
if is_fedora || is_ubuntu; then
|
if is_fedora || is_ubuntu; then
|
||||||
|
@ -8,10 +8,10 @@ set -o xtrace
|
|||||||
"stack")
|
"stack")
|
||||||
case $2 in
|
case $2 in
|
||||||
"pre-install")
|
"pre-install")
|
||||||
# no-op
|
install_requirements
|
||||||
:
|
|
||||||
;;
|
;;
|
||||||
"install")
|
"install")
|
||||||
|
pip_install $COLLECTD_CEILOMETER_DIR
|
||||||
# install system package
|
# install system package
|
||||||
install_collectd
|
install_collectd
|
||||||
# adapt collectd.conf
|
# adapt collectd.conf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user