Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
puppet-freeradius
Commits
0ea7b094
Commit
0ea7b094
authored
Mar 12, 2018
by
Angel L. Mateo
Browse files
Finish huntgroup
parents
ea2442f6
9dc7b3eb
Changes
3
Hide whitespace changes
Inline
Side-by-side
manifests/huntgroup.pp
View file @
0ea7b094
...
...
@@ -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
,
...
...
manifests/module/huntgroup.pp
View file @
0ea7b094
...
...
@@ -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
,
}
}
manifests/module/preprocess.pp
View file @
0ea7b094
...
...
@@ -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
],
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment