Commit 05facb40 authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Take out automatic firewall management (for now).

Add enable/disable param
parent dfd51595
class freeradius::status_server (
$port = '18121',
$listen = '*',
$ipaddr = '127.0.0.1',
$secret,
$firewall = false,
$enable = true,
) {
freeradius::site { 'status':
content => template('freeradius/sites-enabled/status.erb'),
# source => 'puppet:///modules/freeradius/sites-enabled/status',
}
if $firewall == true {
firewall { '100-radius-status':
proto => 'udp',
dport => $port,
source => $ipaddr,
action => 'accept',
content => $enable ? {
true => template('freeradius/sites-enabled/status.erb'),
default => '# Status server disabled',
}
}
}
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