Adjust monit-dashboard to avoid bad formatting of ip
This commit is contained in:
parent
053b6e1828
commit
c669034cda
|
@ -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 }}"
|
||||
|
|
|
@ -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 "" }}
|
||||
|
|
Loading…
Reference in a new issue