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/config.pp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'manifests/config.pp') diff --git a/manifests/config.pp b/manifests/config.pp index c8a5625..1c8963d 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -1,18 +1,5 @@ # -class ntp::config { - - $config = $ntp::config - $config_template = $ntp::config_template - $driftfile = $ntp::driftfile - $keys_enable = $ntp::keys_enable - $keys_file = $ntp::keys_file - $keys_controlkey = $ntp::keys_controlkey - $keys_requestkey = $ntp::keys_requestkey - $keys_trusted = $ntp::keys_trusted - $panic = $ntp::panic - $preferred_servers = $ntp::preferred_servers - $restrict = $ntp::restrict - $servers = $ntp::servers +class ntp::config inherits ntp { if $keys_enable { $directory = dirname($keys_file) -- cgit v1.2.3