From 188405545d3a0b51a4c50ddfe9f2c8129e6fdecf Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 1 Apr 2011 01:44:35 +0000 Subject: use a class to store variable, to reuse this in define --- modules/auto_installation/manifests/init.pp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/auto_installation/manifests') diff --git a/modules/auto_installation/manifests/init.pp b/modules/auto_installation/manifests/init.pp index 86ff186d..f6e39195 100644 --- a/modules/auto_installation/manifests/init.pp +++ b/modules/auto_installation/manifests/init.pp @@ -8,12 +8,15 @@ # - by name, with a valstart clone class auto_installation { - class pxe_menu { + class variables { + $pxe_dir = "/var/lib/pxe" + } + + class pxe_menu inherits variables { package { 'syslinux': } - $pxe_dir = "/var/lib/pxe" file { $pxe_dir: ensure => directory, } -- cgit v1.2.1