2020-08-09 05:02:18 +00:00
|
|
|
{
|
|
|
|
"dispatcher": {
|
|
|
|
"url": "http://127.0.0.1:2812",
|
|
|
|
"user": "{{ monit_web_user }}",
|
|
|
|
"passwd": "{{ monit_web_pasword }}"
|
2020-08-09 05:28:55 +00:00
|
|
|
}{{ "," if items is defined and (items|length>0) else "" }}
|
2020-08-09 05:02:18 +00:00
|
|
|
{% for frame in items %}
|
|
|
|
"{{ frame.name }}": {
|
|
|
|
"url": "http://{{ frame.wireguard_address }}:2812",
|
|
|
|
"user": "{{ frame.monit_web_user }}",
|
|
|
|
"passwd": "{{ frame.monit_web_pasword }}"
|
|
|
|
}{{ "," if not loop.last }}
|
|
|
|
{% endfor %}
|
|
|
|
}
|