Commit 7f4a69b2 authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Template FreeRADIUS user and group to work on other distros

parent 8afa66a5
......@@ -29,4 +29,10 @@ class freeradius::params {
default => 'radiusd',
}
# FreeRADIUS group
$fr_group = $::osfamily ? {
'RedHat' => 'radiusd',
'Debian' => 'freerad',
default => 'radiusd',
}
}
......@@ -168,8 +168,8 @@ pidfile = ${run_dir}/${name}.pid
# It will join all groups where "user" is a member. This can allow
# for some finer-grained access controls.
#
user = radiusd
group = radiusd
user = <%= @fr_user%>
group = <%= @fr_group%>
# panic_action: Command to execute if the server dies unexpectedly.
#
......
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