Monitoring publisher tenant changes
Code changes includes:
disable_monitoring_service.yaml for diabling monitoring of the service.
enable_monitoring_service.yaml for enabling monitoring of the service,
install_monitoring_ceilometer.sh for installing monitoring agent in ceilometer and compute nodes.
Change-Id: I7f8d845cc59786eb25382b51573932fc6c9e5fac
diff --git a/xos/synchronizer/steps/enable_monitoring_service.yaml b/xos/synchronizer/steps/enable_monitoring_service.yaml
new file mode 100644
index 0000000..de03646
--- /dev/null
+++ b/xos/synchronizer/steps/enable_monitoring_service.yaml
@@ -0,0 +1,27 @@
+---
+- hosts: 127.0.0.1
+ connection: local
+ gather_facts: False
+ user: ubuntu
+ vars:
+ monitoringagents:
+ {% for agent in agents %}
+ - url: {{ agent.url }}
+ body: {{ agent.body }}
+ {% endfor %}
+
+ tasks:
+ - name: debug
+ debug: msg=" {{ '{{' }} item {{ '}}' }} "
+ with_items: " {{ '{{' }} monitoringagents {{ '}}' }} "
+
+ - name: starting openstack service monitoring agent
+ uri:
+ url: "{{ '{{' }} item.url {{ '}}' }}"
+ method: POST
+ body: "{{ '{{' }} item.body {{ '}}' }}"
+ force_basic_auth: yes
+ status_code: 200
+ body_format: json
+ with_items: " {{ '{{' }} monitoringagents {{ '}}' }} "
+