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
087d4b95
Commit
087d4b95
authored
Aug 21, 2017
by
Jonathan
Committed by
GitHub
Aug 21, 2017
Browse files
Merge pull request #86 from amateo/feature/module_link
Fix link in absent modules
parents
f0ef6cc0
111812a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/module.pp
View file @
087d4b95
...
...
@@ -11,10 +11,15 @@ define freeradius::module (
$fr_basepath
=
$::freeradius::params::fr_basepath
$fr_group
=
$::freeradius::params::fr_group
$ensure_link
=
$ensure
?
{
'absent'
=>
'absent'
,
default
=>
'link'
}
if
(
$preserve
)
{
# Symlink to mods-available for stock modules
file
{
"
${fr_modulepath}
/
${name}
"
:
ensure
=>
link
,
ensure
=>
$ensure_
link
,
target
=>
"../mods-available/
${name}
"
,
}
}
else
{
...
...
@@ -30,7 +35,7 @@ define freeradius::module (
notify
=>
Service
[
$fr_service
],
}
file
{
"
${fr_modulepath}
/
${name}
"
:
ensure
=>
link
,
ensure
=>
$ensure_
link
,
target
=>
"../mods-available/
${name}
"
,
}
}
...
...
manifests/site.pp
View file @
087d4b95
...
...
@@ -26,6 +26,11 @@ define freeradius::site (
default
=>
undef
,
}
$ensure_link
=
$ensure
?
{
'absent'
=>
'absent'
,
default
=>
'link'
}
file
{
"
${fr_basepath}
/sites-available/
${name}
"
:
ensure
=>
$ensure
,
mode
=>
'0640'
,
...
...
@@ -37,7 +42,7 @@ define freeradius::site (
notify
=>
Service
[
$fr_service
],
}
file
{
"
${fr_basepath}
/sites-enabled/
${name}
"
:
ensure
=>
link
,
ensure
=>
$ensure_
link
,
target
=>
"
${fr_basepath}
/sites-available/
${name}
"
,
}
}
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