Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
puppet-freeradius
Commits
37cdc1f0
Commit
37cdc1f0
authored
Jan 24, 2017
by
Jonathan
Committed by
GitHub
Jan 24, 2017
Browse files
Merge pull request #50 from amateo/feature/dictionary
Add content parameter to freeradius::dictionary
parents
2d38890b
d6831973
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/dictionary.pp
View file @
37cdc1f0
# Install FreeRADIUS custom dictionaries
define
freeradius::dictionary
(
$source
,
$source
=
undef
,
$content
=
undef
,
$order
=
50
,
$ensure
=
present
,
)
{
...
...
@@ -9,6 +10,10 @@ define freeradius::dictionary (
$fr_basepath
=
$::freeradius::params::fr_basepath
$fr_group
=
$::freeradius::params::fr_group
if
!
$source
and
!
$content
{
fail
(
'source or content parameter should be provided'
)
}
# Install dictionary in dictionary.d
file
{
"
${fr_basepath}
/dictionary.d/dictionary.
${name}
"
:
ensure
=>
$ensure
,
...
...
@@ -16,6 +21,7 @@ define freeradius::dictionary (
owner
=>
'root'
,
group
=>
$fr_group
,
source
=>
$source
,
content
=>
$content
,
require
=>
[
File
[
"
${fr_basepath}
/dictionary.d"
],
Package
[
$fr_package
],
Group
[
$fr_group
]],
notify
=>
Service
[
$fr_service
],
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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