From 56d72f72db65d02ab2c731f8aa39c0bd5f1d0562 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Fri, 11 Sep 2026 20:50:01 +0100 Subject: Add is_controller configuration This is needed for nodes which run on the same box that runs the collector. --- munin-node/defaults/main.yml | 1 + munin-node/tasks/main.yml | 1 + munin-node/templates/munin-node.conf.j2 | 2 ++ 3 files changed, 4 insertions(+) diff --git a/munin-node/defaults/main.yml b/munin-node/defaults/main.yml index 6b7606b..1be1e27 100644 --- a/munin-node/defaults/main.yml +++ b/munin-node/defaults/main.yml @@ -5,3 +5,4 @@ --- extra_profiles: [] +is_controller: false diff --git a/munin-node/tasks/main.yml b/munin-node/tasks/main.yml index f068eb5..f1edc30 100644 --- a/munin-node/tasks/main.yml +++ b/munin-node/tasks/main.yml @@ -29,6 +29,7 @@ state: enabled loop: - 4949 # Munin + when: not is_controller become: true - name: Ensure munin is configured diff --git a/munin-node/templates/munin-node.conf.j2 b/munin-node/templates/munin-node.conf.j2 index 81400a9..faba6d4 100644 --- a/munin-node/templates/munin-node.conf.j2 +++ b/munin-node/templates/munin-node.conf.j2 @@ -48,7 +48,9 @@ host_name {{ hostname }} allow ^127\.0\.0\.1$ allow ^::1$ +{% if not is_controller %} allow ^{{ munin_host }}$ +{% endif %} # If you have installed the Net::CIDR perl module, you can use one or more # cidr_allow and cidr_deny address/mask patterns. A connecting client must -- cgit v1.2.3