collectd-openstack-plugins/devstack/settings
Helena McGough 07ae3f81ba Multi-node deployment configuration
- Automated the required configurations for the collectd.conf file
 - Enables the virt and network plugins
 - Included a MULTI_NODE_DEPLOYMENT configuration option for this change
 - This is only enabled when the libvirt.py file is not in use
 - Provided instructions on how to deploy multi-node

Change-Id: I151e318074250b94dbef247e6858c78086fcd362
2017-08-16 12:12:13 +01:00

76 lines
2.8 KiB
Plaintext

# General settings
COLLECTD_CEILOMETER_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )
COLLECTD_BATCH_SIZE=${COLLECTD_BATCH_SIZE:-1}
# Using tag for master branch
COLLECTD_BRANCH=${COLLECTD_BRANCH:-collectd-5.7.1}
COLLECTD_DIR=${COLLECTD_DIR:-$DEST/collectd-$COLLECTD_BRANCH/}
COLLECTD_INSTALL=$(trueorfalse True COLLECTD_INSTALL)
COLLECTD_INSTALL_TYPE=${COLLECTD_INSTALL_TYPE:-'binary'}
COLLECTD_CONF_DIR=${COLLECTD_CONF_DIR:-''}
# this is a mirror of: git://git.verplant.org/collectd.git
COLLECTD_REPO=${COLLECTD_REPO:-'https://github.com/collectd/collectd.git'}
COLLECTD_PREFIX=${COLLECTD_PREFIX:-'/usr'}
COLLECTD_GNOCCHI_VERBOSE=$(trueorfalse False COLLECTD_GNOCCHI_VERBOSE)
COLLECTD_AODH_VERBOSE=$(trueorfalse $COLLECTD_GNOCCHI_VERBOSE COLLECTD_AODH_VERBOSE)
COLLECTD_GNOCCHI_ENABLED=$(trueorfalse True COLLECTD_GNOCCHI_ENABLED)
COLLECTD_AODH_ENABLED=$(trueorfalse False COLLECTD_AODH_ENABLED)
# Configurations for Collectd LogFile plugin
COLLECTD_LOG_FILE=${COLLECTD_LOG_FILE:-$LOGDIR/collectd.log}
COLLECTD_LOG_LEVEL=${COLLECTD_LOG_LEVEL:-info}
# Ceilometer connection info.
CEILOMETER_URL_TYPE=${CEILOMETER_URL_TYPE:-internalURL}
CEILOMETER_TIMEOUT=${CEILOMETER_TIMEOUT:-1000}
# Auth info
OS_AUTH_URL="$KEYSTONE_SERVICE_URI/v$IDENTITY_API_VERSION"
OS_IDENTITY_API_VERSION=${IDENTITY_API_VERSION:-3}
# Libvirt meter is deprecated
LIBVIRT_METER_ENABLED=$(trueorfalse False LIBVIRT_METER_ENABLED)
# Multi-node deployment configurations enabled
MULTI_NODE_DEPLOYMENT=$(trueorfalse False MULTI_NODE_DEPLOYMENT)
# Fall back to default conf dir if option is unset
if [ -z $COLLECTD_CONF_DIR ]; then
if is_ubuntu; then
COLLECTD_CONF_DIR=/etc/collectd/collectd.conf.d
elif is_fedora; then
COLLECTD_CONF_DIR=/etc/collectd.d
fi
fi
#Custom units feature
COLLECTD_GNOCCHI_UNITS=${COLLECTD_GNOCCHI_CUSTOM_UNITS:-none}
# Custom alarm severities feature
COLLECTD_ALARM_SEVERITIES=${COLLECTD_AODH_SEVERITIES:-none}
# User defined requirements
COLLECTD_ADDITIONAL_PACKAGES=${COLLECTD_ADDITIONAL_PACKAGES:-''}
COLLECTD_REQUIREMENTS=''
# Definition for requirements
ubuntu_bin_requirements="libvirt-bin libvirt-dev python-libvirt"
ubuntu_src_requirements="$ubuntu_bin_requirements byacc flex bison build-essential automake libgcrypt20 libtool"
centos_bin_requirements="libvirt libvirt-devel libvirt-python"
centos_src_requirements="$centos_bin_requirements flex bison automake autoconf libtool"
if is_ubuntu; then
if [[ "$COLLECTD_INSTALL_TYPE" == "source" ]]; then
COLLECTD_REQUIREMENTS="$ubuntu_src_requirements"
else
COLLECTD_REQUIREMENTS="$ubuntu_bin_requirements"
fi
elif is_fedora; then
if [[ "$COLLECTD_INSTALL_TYPE" == "source" ]]; then
COLLECTD_REQUIREMENTS="$centos_src_requirements"
else
COLLECTD_REQUIREMENTS="$centos_bin_requirements"
fi
fi