From c669034cda041cde2ad34276b7f887eff2acfdb9 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sun, 9 Aug 2020 01:48:39 -0400 Subject: [PATCH] Adjust monit-dashboard to avoid bad formatting of ip --- host_vars/frame1.example | 1 + roles/monit-dashboard/templates/servers.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/host_vars/frame1.example b/host_vars/frame1.example index 4448930..37eb047 100644 --- a/host_vars/frame1.example +++ b/host_vars/frame1.example @@ -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 }}" diff --git a/roles/monit-dashboard/templates/servers.json b/roles/monit-dashboard/templates/servers.json index 45423a8..ddd7348 100644 --- a/roles/monit-dashboard/templates/servers.json +++ b/roles/monit-dashboard/templates/servers.json @@ -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 "" }}