Unverified Commit f0d20754 authored by Jonathan's avatar Jonathan Committed by GitHub
Browse files

Merge pull request #96 from amateo/huntgroup

Huntgroup
parents 9b64187c 9dc7b3eb
......@@ -13,7 +13,6 @@ define freeradius::huntgroup (
$content = "${huntgroup}\t${conditionals}\n"
concat::fragment { "huntgroup.${title}":
ensure => $ensure,
target => "${fr_basepath}/mods-config/preprocess/huntgroups",
content => $content,
order => $order,
......
......@@ -3,11 +3,12 @@
define freeradius::module::huntgroup (
Variant[String,Array] $conditions,
Variant[String,Integer] $order = 50,
String $huntgroup = 'huntgroup',
Optional[String] $huntgroup = undef,
) {
concat::fragment {"Huntgroup ${name}":
target => $huntgroup,
order => $order,
content => template('freeradius/huntgroup.erb'),
warning('Use of freeradius::module::huntgroup is deprecated. Use freeradius::huntgroup instead')
freeradius::huntgroup {$name:
conditions => $conditions,
order => $order,
}
}
......@@ -19,20 +19,4 @@ class freeradius::module::preprocess (
ensure => $ensure,
content => template('freeradius/preprocess.erb'),
}
$huntgroup_path = $huntgroups ? {
"\${moddir}/huntgroups" => "${fr_moduleconfigpath}/preprocess/huntgroups",
default => $huntgroups,
}
concat {'huntgroup':
ensure => $ensure,
path => $huntgroup_path,
owner => 'root',
group => $fr_group,
mode => '0640',
require => Freeradius::Module['preprocess'],
notify => Service[$fr_service],
}
}
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