From 6c8273116b62d5fc6a85b6914930756f81f7175b Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Sun, 18 Dec 2016 19:31:42 -0500 Subject: build collectd with pqos 1. can build collectd with pqos 2. ceilometer with collectd basic functionality work as expected 3. todo: need to verify pqos work as expected Change-Id: I9f992de6ef5d8c0ea97a30162dd916bcd3accb34 Signed-off-by: Guo Ruijing --- src/fuel-plugin/deployment_scripts/install.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/fuel-plugin/deployment_scripts/install.sh') diff --git a/src/fuel-plugin/deployment_scripts/install.sh b/src/fuel-plugin/deployment_scripts/install.sh index 0bcb4008..e602e9c8 100755 --- a/src/fuel-plugin/deployment_scripts/install.sh +++ b/src/fuel-plugin/deployment_scripts/install.sh @@ -11,19 +11,25 @@ OS_PASSWORD=$4 CEILOMETER_URL_TYPE=${CEILOMETER_URL_TYPE:-internalURL} CEILOMETER_TIMEOUT=${CEILOMETER_TIMEOUT:-1000} -apt-get install -y collectd python-dev libpython2.7 - rm -rf $INSTALL_HOME; mkdir -p $INSTALL_HOME cd $INSTALL_HOME curl http://$HOST:8080/plugins/fuel-plugin-collectd-ceilometer-1.0/repositories/ubuntu/collectd-ceilometer.tgz | tar xzvf - +cat << EOF > /etc/ld.so.conf.d/pqos.conf +$INSTALL_HOME/lib +EOF +ldconfig +modprobe msr + +apt-get install -y --allow-unauthenticated collectd python-dev libpython2.7 + cat << EOF > /etc/collectd/collectd.conf.d/collectd-ceilometer-plugin.conf Globals true - ModulePath "$INSTALL_HOME" + ModulePath "$INSTALL_HOME/collectd-ceilometer-plugin" LogTraces true Interactive false Import "collectd_ceilometer.plugin" -- cgit 1.2.3-korg