Skip to content
Snippets Groups Projects
Commit 4feb8c01 authored by Matt Wise's avatar Matt Wise
Browse files

Add an optional content parameter to the freeradius::config resource.

This allows a user to use templates for their FreeRADIUS configuration
files rather than static files.
parent 97af2a54
Branches
Tags
No related merge requests found
......@@ -211,6 +211,12 @@ freeradius::config { 'realm-checks.conf':
}
```
```puppet
freeradius::config { 'realm-checks.conf':
content => template('your_template),
}
```
#### `freeradius::dictionary`
Install custom dictionaries without breaking the default FreeRADIUS dictionary. Custom dictionaries are installed in `/etc/raddb/dictionary.d` and automatically included in the global dictionary.
......
# Install FreeRADIUS config snippets
define freeradius::config (
$source,
$source = undef,
$content = undef,
$ensure = present,
) {
$fr_package = $::freeradius::params::fr_package
......@@ -14,6 +15,7 @@ define freeradius::config (
owner => 'root',
group => $fr_group,
source => $source,
content => $content,
require => [File["${fr_basepath}/conf.d"], Package[$fr_package], Group[$fr_group]],
notify => Service[$fr_service],
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment