Fixup monit-dashboard config
This commit is contained in:
parent
ec3e35ff9a
commit
54203fb093
|
@ -3,12 +3,12 @@
|
||||||
"url": "http://127.0.0.1:2812",
|
"url": "http://127.0.0.1:2812",
|
||||||
"user": "{{ monit_web_user }}",
|
"user": "{{ monit_web_user }}",
|
||||||
"passwd": "{{ monit_web_pasword }}"
|
"passwd": "{{ monit_web_pasword }}"
|
||||||
}{{ "," if items is defined and (items|length>0) else "" }}
|
}{{ "," if groups['frames'] is defined and (groups['frames']|length>0) else "" }}
|
||||||
{% for frame in items %}
|
{% for frame in groups['frames'] %}
|
||||||
"{{ frame.name }}": {
|
"{{ hostvars[frame].inventory_hostname }}": {
|
||||||
"url": "http://{{ frame.wireguard_address }}:2812",
|
"url": "http://{{ hostvars[frame].wireguard_address }}:2812",
|
||||||
"user": "{{ frame.monit_web_user }}",
|
"user": "{{ hostvars[frame].monit_web_user }}",
|
||||||
"passwd": "{{ frame.monit_web_pasword }}"
|
"passwd": "{{ hostvars[frame].monit_web_pasword }}"
|
||||||
}{{ "," if not loop.last }}
|
}{{ "," if not loop.last else "" }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue