Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,6 @@ define freeradius::huntgroup ( ...@@ -13,7 +13,6 @@ define freeradius::huntgroup (
$content = "${huntgroup}\t${conditionals}\n" $content = "${huntgroup}\t${conditionals}\n"
concat::fragment { "huntgroup.${title}": concat::fragment { "huntgroup.${title}":
ensure => $ensure,
target => "${fr_basepath}/mods-config/preprocess/huntgroups", target => "${fr_basepath}/mods-config/preprocess/huntgroups",
content => $content, content => $content,
order => $order, order => $order,
......
...@@ -3,11 +3,12 @@ ...@@ -3,11 +3,12 @@
define freeradius::module::huntgroup ( define freeradius::module::huntgroup (
Variant[String,Array] $conditions, Variant[String,Array] $conditions,
Variant[String,Integer] $order = 50, Variant[String,Integer] $order = 50,
String $huntgroup = 'huntgroup', Optional[String] $huntgroup = undef,
) { ) {
concat::fragment {"Huntgroup ${name}": warning('Use of freeradius::module::huntgroup is deprecated. Use freeradius::huntgroup instead')
target => $huntgroup,
freeradius::huntgroup {$name:
conditions => $conditions,
order => $order, order => $order,
content => template('freeradius/huntgroup.erb'),
} }
} }
...@@ -19,20 +19,4 @@ class freeradius::module::preprocess ( ...@@ -19,20 +19,4 @@ class freeradius::module::preprocess (
ensure => $ensure, ensure => $ensure,
content => template('freeradius/preprocess.erb'), 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],
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment