Adjust monit-dashboard to avoid bad formatting of ip

This commit is contained in:
KemoNine 2020-08-09 01:48:39 -04:00
parent 053b6e1828
commit c669034cda
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@ msmtp_smtp_server: "smtp.domain.tld"
msmtp_smtp_from: "piframe@domain.tld"
msmtp_smtp_user: "piframe@domain.tld"
msmtp_smtp_password: "password"
monit_dashboard_address: 192.168.254.11
monit_notification_email: "{{ msmtp_email_address }}"
monit_smtp_server: "{{ msmtp_smtp_server }}"
monit_smtp_user: "{{ msmtp_smtp_user }}"

View file

@ -6,7 +6,7 @@
}{{ "," if groups['frames'] is defined and (groups['frames']|length>0) else "" }}
{% for frame in groups['frames'] %}
"{{ hostvars[frame].inventory_hostname }}": {
"url": "http://{{ hostvars[frame].wireguard_address }}:2812",
"url": "http://{{ hostvars[frame].monit_dashboard_address }}:2812",
"user": "{{ hostvars[frame].monit_web_user }}",
"passwd": "{{ hostvars[frame].monit_web_pasword }}"
}{{ "," if not loop.last else "" }}