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
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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.
+3 −1
Original line number Diff line number Diff line
# 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],
  }