Skip to content

Commit

Permalink
Update init.pp
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderMalmstrom committed Nov 20, 2024
1 parent d4b6dd8 commit 8914d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/wireguard/manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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'],
Expand Down

0 comments on commit 8914d11

Please sign in to comment.