From 8914d11bf37d283826f408abc83620fa40e5f0d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Malmstr=C3=B6m?= Date: Wed, 20 Nov 2024 15:56:45 +0100 Subject: [PATCH] Update init.pp --- modules/wireguard/manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/wireguard/manifests/init.pp b/modules/wireguard/manifests/init.pp index 1bb308bd..742f6752 100644 --- a/modules/wireguard/manifests/init.pp +++ b/modules/wireguard/manifests/init.pp @@ -6,7 +6,7 @@ creates => '/etc/iptables/rules.v4', source => "puppet:///svn/${current_event}/services/rules.v4", } - + #Apply FW rules exec { 'fw-rules': command => '/usr/sbin/iptables-restore /etc/iptables/rules.v4', @@ -66,7 +66,7 @@ unless => '/usr/bin/ip link show wg0 | grep UP' } - if !($tunnelip =~ String[1]) { + if ($tunnelip =~ String[1]) { #Set tunnel IP exec { 'set-IP': require => Exec['link-up'],