Commit c69b795a authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Purge unmanaged sites from sites-enabled

parent bd3ea6c0
......@@ -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':
......
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment