Commit 62210576 authored by Jonathan's avatar Jonathan Committed by GitHub
Browse files

Merge pull request #70 from amateo/feature/fix_file

Fix freeradius::module::files
parents f3ecaa60 dfd405cd
......@@ -3,16 +3,16 @@
# Create e file module configuration for FreeRADIUS
#
define freeradius::module::files (
$ensure = 'present',
String $moddir = "\${modconfdir}/\${.:instance}",
Optional[String] $key = undef,
String $filename = "\${moddir}/authorize",
Optional[String] $usersfile = undef,
String $acctusersfile = "\${moddir}/accounting",
String $preproxy_usersfile = "\${moddir}/pre-proxy",
Array[Hash] $users = [],
Optional[String] $source = undef,
Optional[String] $content = undef,
$ensure = 'present',
String $moddir = "\${modconfdir}/\${.:instance}",
Optional[String] $key = undef,
String $filename = "\${moddir}/authorize",
Optional[String] $usersfile = undef,
Optional[String] $acctusersfile = undef,
Optional[String] $preproxy_usersfile = undef,
Array[Hash] $users = [],
Optional[String] $source = undef,
Optional[String] $content = undef,
) {
$fr_moduleconfigpath = $::freeradius::params::fr_moduleconfigpath
$fr_group = $::freeradius::params::fr_group
......
......@@ -34,6 +34,10 @@ files <%= @name %> {
# These are accepted for backwards compatibility.
# They will be renamed in a future release.
<%- if @acctusersfile -%>
acctusersfile = ${moddir}/accounting
<%- end -%>
<%- if @preproxy_usersfile -%>
preproxy_usersfile = ${moddir}/pre-proxy
<%- end -%>
}
Supports Markdown
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