Commit dfd405cd authored by Angel L. Mateo's avatar Angel L. Mateo Committed by Angel L. Mateo
Browse files

Fix freeradius::module::files

acctusersfile and preproxy_usersfile should be configured by default as
undef.
parent c87de16c
......@@ -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