Initial commit of PassiveTest
Change-Id: Idcd9a0c72df5eae6b4eedc544e473ebc9763ccdb
(cherry picked from commit 9062322cffd03d2c56b66d040ad13bc562bb6544)
diff --git a/install_monitoring_plugin.yaml b/install_monitoring_plugin.yaml
new file mode 100644
index 0000000..b5bf5f9
--- /dev/null
+++ b/install_monitoring_plugin.yaml
@@ -0,0 +1,27 @@
+---
+- hosts: '{{ instance_host }}'
+ gather_facts: False
+ connection: ssh
+ user: ubuntu
+ sudo: yes
+
+ tasks:
+
+ - name: copy plugin
+ copy: src=ext_services/passivetest dest=/usr/lib/python2.7/dist-packages/ceilometer/network/ext_services
+
+ - name: modify entry_points
+ lineinfile:
+ dest: /usr/lib/python2.7/dist-packages/ceilometer-6.0.0.egg-info/entry_points.txt
+ line: passivetest=ceilometer.network.ext_services.passivetest.notifications:PassiveTestNotification
+ insertafter: '^infra=.*'
+
+ - name: restart ceilometer services
+ service:
+ name: ceilometer-agent-central
+ state: restarted
+
+ - name: restart ceilometer services
+ service:
+ name: ceilometer-agent-notification
+ state: restarted