diff --git a/README.md b/README.md index d55fb997d17bb4e3f9867c80687ee3e1c477188a..3ccfd03de1b9eea4e3721448ed8583c0edc76c3a 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/manifests/config.pp b/manifests/config.pp index 112b1918bad15b6305a12f2d355707b7be8ede7c..1da88eff2e3dd5f2ddb8b4d63eaad3d263282eaa 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -1,6 +1,7 @@ # 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], }