Commit e33e98e2 authored by Andreas Kempe's avatar Andreas Kempe
Browse files

firewall: use file line in /etc/rc.conf

The configuration fragments in /etc/rc.conf.d won't apply correctly.
Move the configuration to /etc/rc.conf instead.
parent 37b333f7
firewall_enable="YES"
firewall_type="open"
#
class freebsd::firewall::open {
file { '/etc/rc.conf.d/firewall-open':
ensure => file,
source => 'puppet:///modules/freebsd/firewall-open',
owner => 'root',
group => 'wheel',
mode => '0644',
file_line { 'Enable firewall':
path => '/etc/rc.conf',
line => 'firewall_enable="YES"',
}
file_line { 'Set type to open':
path => '/etc/rc.conf',
line => 'firewall_type="open"',
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment