diff options
Diffstat (limited to 'src/fuel-plugin/deployment_scripts/install.sh')
-rwxr-xr-x | src/fuel-plugin/deployment_scripts/install.sh | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/fuel-plugin/deployment_scripts/install.sh b/src/fuel-plugin/deployment_scripts/install.sh new file mode 100755 index 00000000..9a9bf613 --- /dev/null +++ b/src/fuel-plugin/deployment_scripts/install.sh @@ -0,0 +1,54 @@ +#!/bin/bash +set -eux + +INSTALL_HOME=/opt/collectd-ceilometer + +HOST=$1 +OS_AUTH_URL=$2 +OS_USERNAME=$3 +OS_PASSWORD=$4 + +CEILOMETER_URL_TYPE=${CEILOMETER_URL_TYPE:-internalURL} +CEILOMETER_TIMEOUT=${CEILOMETER_TIMEOUT:-1000} + +rm -rf $INSTALL_HOME; mkdir -p $INSTALL_HOME +cd $INSTALL_HOME +curl http://$HOST:8080/plugins/fuel-plugin-collectd-ceilometer-0.9/repositories/ubuntu/collectd-ceilometer.tgz | tar xzvf - + +cat << EOF > /etc/collectd/collectd.conf.d/collectd-ceilometer-plugin.conf +<LoadPlugin python> + Globals true +</LoadPlugin> + +<Plugin python> + ModulePath "$INSTALL_HOME" + LogTraces true + Interactive false + Import "collectd_ceilometer_plugin" + + <Module collectd_ceilometer_plugin> + + # Verbosity 1|0 + #VERBOSE 0 + + # Batch size + BATCH_SIZE 3 + + # Service endpoint addresses + OS_AUTH_URL "$OS_AUTH_URL" + + # Ceilometer address + #CEILOMETER_ENDPOINT + CEILOMETER_URL_TYPE "$CEILOMETER_URL_TYPE" + + # Ceilometer timeout in ms + CEILOMETER_TIMEOUT "$CEILOMETER_TIMEOUT" + + # # Ceilometer user creds + OS_USERNAME "$OS_USERNAME" + OS_PASSWORD "$OS_PASSWORD" + OS_TENANT_NAME "service" + + </Module> +</Plugin> +EOF |