Skip to content
Snippets Groups Projects
Commit 9e6ad293 authored by Matt Wise's avatar Matt Wise
Browse files

Set hasstatus properly on the service based on the OS.

parent b644a065
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ class freeradius (
name => $freeradius::fr_service,
require => [Exec['radiusd-config-test'], File['radiusd.conf'], User[$freeradius::fr_user], Package[$freeradius::fr_package],],
enable => true,
hasstatus => true,
hasstatus => $freeradius::fr_service_has_status,
hasrestart => true,
}
......
......@@ -22,6 +22,13 @@ class freeradius::params {
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
$fr_basepath = $::osfamily ? {
'RedHat' => '/etc/raddb',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment