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
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/instance-kvm.cfg.jinja2
mode = 644
md5sum = 3e9d5e3c40f9c6c5e3dd690d524eb2f4
md5sum = 673198a81da3cf87b54f19d8acfceaa5
download-only = true
on-update = true
......@@ -182,8 +182,8 @@ filename = ansible-promise.in
[ansible-monitor-script]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/monitor/ansibleReport.py
md5sum = 7a1be56978e043467f4f071cbae34b3c
mode = 0644
md5sum = 5be58aa24bb33ce9f6df1537a4a77e8f
mode = 0755
download-only = true
filename = ansibleReport.py
......
......@@ -50,7 +50,7 @@ parts =
monitor-kvm-ansible
start-monitor
ca-httpd
monitor-promise
conf-monitor-promise
{% endif -%}
{% if slapparameter_dict.get('document-host', '') %}
cluster-url-path
......
......@@ -197,8 +197,8 @@ if __name__ == "__main__":
"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."
}"""
path = sys.argv[1]
with open(path, 'w') as status_file:
parameter_dict = json.loads(sys.argv[1])
with open(parameter_dict['status_path'], 'w') as status_file:
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