Commit ed592ab6 authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Fix cidr addresses for statusclients

parent 74717804
......@@ -14,6 +14,19 @@ define freeradius::statusclient (
$fr_group = $::freeradius::params::fr_group
$fr_version = $::freeradius::params::fr_version
$cidr = $netmask ? {
undef => $ip,
default => "${ip}/${netmask}",
}
$cidr6 = $netmask ? {
undef => $ip6,
default => "${ip6}/${netmask}",
}
if ($netmask and $fr_version == 3) {
warning("netmask field found in client ${shortname} is deprecated, use CIDR notation instead. Please fix your configuration.")
}
file { "${fr_basepath}/statusclients.d/${name}.conf":
ensure => $ensure,
mode => '0640',
......
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