From 8528d604a4fdc6ab242f05d522d66dd4f1c90f3c Mon Sep 17 00:00:00 2001 From: Ashley Penney Date: Wed, 14 Aug 2013 20:26:51 -0400 Subject: Remove variables, switch to inherits. This commit removes all the local copies of variables in the subclasses and simply inherits the main class in order to bring variables into the right scope. --- manifests/service.pp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'manifests/service.pp') diff --git a/manifests/service.pp b/manifests/service.pp index 2b1eee0..3f1ada0 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -1,10 +1,5 @@ # -class ntp::service { - - $service_enable = $ntp::service_enable - $service_ensure = $ntp::service_ensure - $service_manage = $ntp::service_manage - $service_name = $ntp::service_name +class ntp::service inherits ntp { if ! ($service_ensure in [ 'running', 'stopped' ]) { fail('service_ensure parameter must be running or stopped') -- cgit v1.2.3