diff options
author | Guo Ruijing <ruijing.guo@intel.com> | 2016-12-18 19:31:42 -0500 |
---|---|---|
committer | Guo Ruijing <ruijing.guo@intel.com> | 2016-12-27 20:06:41 -0500 |
commit | 6c8273116b62d5fc6a85b6914930756f81f7175b (patch) | |
tree | 70b4bf5a0f03af8ea138f1a81f17ac44a10dc45e /src/fuel-plugin/deployment_scripts/install.sh | |
parent | db7cec29b6a71c0eb0a5a3bcb1e20c4fac73d804 (diff) |
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 <ruijing.guo@intel.com>
Diffstat (limited to 'src/fuel-plugin/deployment_scripts/install.sh')
-rwxr-xr-x | src/fuel-plugin/deployment_scripts/install.sh | 12 |
1 files changed, 9 insertions, 3 deletions
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 <LoadPlugin python> Globals true </LoadPlugin> <Plugin python> - ModulePath "$INSTALL_HOME" + ModulePath "$INSTALL_HOME/collectd-ceilometer-plugin" LogTraces true Interactive false Import "collectd_ceilometer.plugin" |