Commit 6309ed47 authored by Alain Takoudjou's avatar Alain Takoudjou Committed by Tristan Cavelier

kvm: monitor sample updated

parent 326edbda
...@@ -98,7 +98,7 @@ mode = 0644 ...@@ -98,7 +98,7 @@ mode = 0644
recipe = hexagonit.recipe.download recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/instance-kvm.cfg.jinja2 url = ${:_profile_base_location_}/instance-kvm.cfg.jinja2
mode = 644 mode = 644
md5sum = 3e9d5e3c40f9c6c5e3dd690d524eb2f4 md5sum = 673198a81da3cf87b54f19d8acfceaa5
download-only = true download-only = true
on-update = true on-update = true
...@@ -182,8 +182,8 @@ filename = ansible-promise.in ...@@ -182,8 +182,8 @@ filename = ansible-promise.in
[ansible-monitor-script] [ansible-monitor-script]
recipe = hexagonit.recipe.download recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/monitor/ansibleReport.py url = ${:_profile_base_location_}/monitor/ansibleReport.py
md5sum = 7a1be56978e043467f4f071cbae34b3c md5sum = 5be58aa24bb33ce9f6df1537a4a77e8f
mode = 0644 mode = 0755
download-only = true download-only = true
filename = ansibleReport.py filename = ansibleReport.py
......
...@@ -50,7 +50,7 @@ parts = ...@@ -50,7 +50,7 @@ parts =
monitor-kvm-ansible monitor-kvm-ansible
start-monitor start-monitor
ca-httpd ca-httpd
monitor-promise conf-monitor-promise
{% endif -%} {% endif -%}
{% if slapparameter_dict.get('document-host', '') %} {% if slapparameter_dict.get('document-host', '') %}
cluster-url-path cluster-url-path
......
...@@ -197,8 +197,8 @@ if __name__ == "__main__": ...@@ -197,8 +197,8 @@ if __name__ == "__main__":
"message": "kvm-1: OK(114) FAILED(0) IGNORED(2)", "message": "kvm-1: OK(114) FAILED(0) IGNORED(2)",
"description": "Ansible playbook report in kvm-1. Execution date is: 2015-08-28 17:42:01." "description": "Ansible playbook report in kvm-1. Execution date is: 2015-08-28 17:42:01."
}""" }"""
path = sys.argv[1] parameter_dict = json.loads(sys.argv[1])
with open(path, 'w') as status_file: with open(parameter_dict['status_path'], 'w') as status_file:
status_file.write(json) status_file.write(json)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment