From f5310ba23f7bbcee46577ba625b478357f60fe12 Mon Sep 17 00:00:00 2001 From: Maria Haider Date: Mon, 8 May 2023 17:49:50 +0200 Subject: [PATCH] allow nagios hosts on 444 --- global/overlay/etc/puppet/manifests/cosmos-site.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp index e76d02e9..25ce7adc 100644 --- a/global/overlay/etc/puppet/manifests/cosmos-site.pp +++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp @@ -118,9 +118,9 @@ class webserver($enabled=true) { } class servicemonitor { - $nagios_ip_v4 = join(hiera('nagios_ip_v4')," "); - ufw::allow { "allow-servicemonitor-from-nagios": - ip => $nagios_ip_v4, + $nagios_ip_v4 = hiera_array('nagios_ip_v4',[]); + sunet::misc::ufw_allow { "allow-servicemonitor-from-nagios": + from => $nagios_ip_v4, port => '444', } }