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

25 lines
738 B
Plaintext

# General settings
COLLECTD_CEILOMETER_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )
COLLECTD_BATCH_SIZE=${COLLECTD_BATCH_SIZE:-3}
COLLECTD_INSTALL=${COLLECTD_INSTALL:-True}
COLLECTD_CONF_DIR=${COLLECTD_CONF_DIR:-''}
# Ceilometer connection info.
CEILOMETER_URL_TYPE=${CEILOMETER_URL_TYPE:-internalURL}
CEILOMETER_TIMEOUT=${CEILOMETER_TIMEOUT:-1000}
# Auth info
OS_AUTH_URL="$KEYSTONE_AUTH_URI/v$IDENTITY_API_VERSION"
OS_USERNAME="ceilometer"
OS_PASSWORD=${SERVICE_PASSWORD}
# 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