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
111812a6
Commit
111812a6
authored
Aug 21, 2017
by
Angel L. Mateo
Browse files
The link in mods-enabled directory should not be present if site has
ensure => absent
parent
348571a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/site.pp
View file @
111812a6
...
...
@@ -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