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
c69b795a
Commit
c69b795a
authored
Mar 06, 2015
by
Jonathan Gazeley
Browse files
Purge unmanaged sites from sites-enabled
parent
bd3ea6c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
c69b795a
...
...
@@ -294,7 +294,8 @@ freeradius::script{ 'myperlscript.pl':
#### `freeradius::site`
Install a virtual server (a.k.a. site) from a flat file. Sites are installed directly
into
`/etc/raddb/sites-enabled`
into
`/etc/raddb/sites-enabled`
. Any files in this directory that are
*not*
managed by
Puppet will be removed.
```
puppet
freeradius::site
{
'inner-tunnel'
:
...
...
manifests/init.pp
View file @
c69b795a
...
...
@@ -43,9 +43,11 @@ class freeradius (
}
# Create these directories separately so we can set purge option
# Anything in these dirs NOT managed by puppet will be removed!
file
{
[
"
${freeradius::fr_basepath}
/certs"
,
"
${freeradius::fr_basepath}
/clients.d"
,
"
${freeradius::fr_basepath}
/sites-enabled"
,
]:
ensure
=>
directory
,
purge
=>
true
,
...
...
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