Commit 9e6ad293 authored by Matt Wise's avatar Matt Wise
Browse files

Set hasstatus properly on the service based on the OS.

parent b644a065
...@@ -121,7 +121,7 @@ class freeradius ( ...@@ -121,7 +121,7 @@ class freeradius (
name => $freeradius::fr_service, name => $freeradius::fr_service,
require => [Exec['radiusd-config-test'], File['radiusd.conf'], User[$freeradius::fr_user], Package[$freeradius::fr_package],], require => [Exec['radiusd-config-test'], File['radiusd.conf'], User[$freeradius::fr_user], Package[$freeradius::fr_package],],
enable => true, enable => true,
hasstatus => true, hasstatus => $freeradius::fr_service_has_status,
hasrestart => true, hasrestart => true,
} }
......
...@@ -22,6 +22,13 @@ class freeradius::params { ...@@ -22,6 +22,13 @@ class freeradius::params {
default => 'radiusd', default => 'radiusd',
} }
# Whether the FreeRADIUS init.d startup script has a status setting or not
$fr_service_has_status = $::osfamily ? {
'RedHat' => true,
'Debian' => false,
default => false,
}
# Default base path for FreeRADIUS configs # Default base path for FreeRADIUS configs
$fr_basepath = $::osfamily ? { $fr_basepath = $::osfamily ? {
'RedHat' => '/etc/raddb', 'RedHat' => '/etc/raddb',
......
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