From 54ab1a356c865b9f5ec2038d6cc04a5c06dee719 Mon Sep 17 00:00:00 2001 From: Matt Wise <matt@nextdoor.com> Date: Wed, 21 Jan 2015 13:03:45 -0800 Subject: [PATCH] Rename the Service[radiusd] resource to Service[$fr_service]. This fixes unit tests on non-CentOS hosts where the service name is freeradius instead of radiusd. --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 98bcfae..33cff14 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -116,7 +116,7 @@ class freeradius ( # radiusd always tests its config before restarting the service, to avoid outage. If the config is not valid, the service # won't get restarted, and the puppet run will fail. - service { 'radiusd': + service { $freeradius::fr_service: ensure => running, name => $freeradius::fr_service, require => [Exec['radiusd-config-test'], File['radiusd.conf'], User[$freeradius::fr_user], Package[$freeradius::fr_package],], -- GitLab