aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2017-01-18 07:08:01 +0000
committerMaryam Tahhan <maryam.tahhan@intel.com>2017-01-19 09:49:42 +0000
commitf4e46b516e86d62250307e8921e64f83a321f639 (patch)
tree7caae8ed6b9263489e267ab255ecd18c02c32a47 /src
parent43d5947f671a83d0658c5c0215f63c343781d92f (diff)
fuel: update to include OvS configuration
Update the barometer Fuel plugin to include OvS plugin configuration. Change-Id: I59117632e60eb448e429d92c5f1f49bf7d1b5e78 Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fuel-plugin/deployment_scripts/install.sh18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/fuel-plugin/deployment_scripts/install.sh b/src/fuel-plugin/deployment_scripts/install.sh
index 08efca81..98605a19 100755
--- a/src/fuel-plugin/deployment_scripts/install.sh
+++ b/src/fuel-plugin/deployment_scripts/install.sh
@@ -30,8 +30,6 @@ modprobe msr
apt-get install -y --allow-unauthenticated collectd python-dev libpython2.7 mcelog
-echo $MCELOG_SOCKET | sudo tee -a $MCELOG_CONF;
-
cat << EOF > /etc/collectd/collectd.conf.d/collectd-ceilometer-plugin.conf
<LoadPlugin python>
Globals true
@@ -100,7 +98,8 @@ fi
if [ $enable_mcelog = 'true' ]
then
-cat << EOF > /etc/collectd/collectd.conf.d/mcelog.conf
+ echo $MCELOG_SOCKET | sudo tee -a $MCELOG_CONF;
+ cat << EOF > /etc/collectd/collectd.conf.d/mcelog.conf
<LoadPlugin mcelog>
Interval 1
</LoadPlugin>
@@ -110,4 +109,17 @@ cat << EOF > /etc/collectd/collectd.conf.d/mcelog.conf
EOF
fi
+if [ $enable_ovs_events = 'true' ]
+then
+ ovs-vsctl set-manager ptcp:6640
+ cat << EOF > /etc/collectd/collectd.conf.d/ovs.conf
+<LoadPlugin ovs_events>
+ Interval 1
+</LoadPlugin>
+<Plugin "ovs_events">
+ SendNotification true
+</Plugin>
+EOF
+fi
+
service collectd restart