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 05a7e39 commit d4b6dd8
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions modules/wireguard/manifests/init.pp
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
class wireguard($current_event, $tunnelip) {

if !($current_event =~ String[1]) {
#Pull down FW rules from SVN
file { '/etc/iptables/rules.v4':
ensure => file,
recurse => remote,
creates => '/etc/iptables/rules.v4',
source => "puppet:///svn/${current_event}/services/rules.v4",
}
}

#Pull down FW rules from SVN
file { '/etc/iptables/rules.v4':
ensure => file,
recurse => remote,
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

0 comments on commit d4b6dd8

Please sign in to comment.