2020-08-09 05:02:18 +00:00
|
|
|
{
|
|
|
|
"dispatcher": {
|
2020-08-09 05:57:29 +00:00
|
|
|
"url": "http://{{ monit_dashboard_address }}:2812",
|
2020-08-09 05:02:18 +00:00
|
|
|
"user": "{{ monit_web_user }}",
|
|
|
|
"passwd": "{{ monit_web_pasword }}"
|
2020-08-09 05:35:53 +00:00
|
|
|
}{{ "," if groups['frames'] is defined and (groups['frames']|length>0) else "" }}
|
|
|
|
{% for frame in groups['frames'] %}
|
|
|
|
"{{ hostvars[frame].inventory_hostname }}": {
|
2020-08-09 05:48:39 +00:00
|
|
|
"url": "http://{{ hostvars[frame].monit_dashboard_address }}:2812",
|
2020-08-09 05:35:53 +00:00
|
|
|
"user": "{{ hostvars[frame].monit_web_user }}",
|
|
|
|
"passwd": "{{ hostvars[frame].monit_web_pasword }}"
|
|
|
|
}{{ "," if not loop.last else "" }}
|
2020-08-09 05:02:18 +00:00
|
|
|
{% endfor %}
|
|
|
|
}
|