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