fuel: update to include OvS configuration 45/27145/3
authorMaryam Tahhan <maryam.tahhan@intel.com>
Wed, 18 Jan 2017 07:08:01 +0000 (07:08 +0000)
committerMaryam Tahhan <maryam.tahhan@intel.com>
Thu, 19 Jan 2017 09:49:42 +0000 (09:49 +0000)
Update the barometer Fuel plugin to include OvS plugin configuration.

Change-Id: I59117632e60eb448e429d92c5f1f49bf7d1b5e78
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
src/fuel-plugin/deployment_scripts/install.sh

index 08efca8..98605a1 100755 (executable)
@@ -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