Commit b644a065 authored by Matt Wise's avatar Matt Wise
Browse files

Add optional content parameter to the freeradius::module resource.

parent 9f07dee6
...@@ -245,6 +245,12 @@ freeradius::module { 'buffered-sql': ...@@ -245,6 +245,12 @@ freeradius::module { 'buffered-sql':
} }
``` ```
```puppet
freeradius::module { 'buffered-sql':
content => template('some_template.erb)',
}
```
#### `freeradius::policy` #### `freeradius::policy`
Install a policy from a flat file. Install a policy from a flat file.
......
# Install FreeRADIUS modules # Install FreeRADIUS modules
define freeradius::module ( define freeradius::module (
$source, $source = undef,
$content = undef,
$ensure = present, $ensure = present,
) { ) {
$fr_package = $::freeradius::params::fr_package $fr_package = $::freeradius::params::fr_package
...@@ -14,6 +15,7 @@ define freeradius::module ( ...@@ -14,6 +15,7 @@ define freeradius::module (
owner => 'root', owner => 'root',
group => $fr_group, group => $fr_group,
source => $source, source => $source,
content => $content,
require => [Package[$fr_package], Group[$fr_group]], require => [Package[$fr_package], Group[$fr_group]],
notify => Service[$fr_service], notify => Service[$fr_service],
} }
......
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