diff options
author | Michael Scherer <misc@mageia.org> | 2011-04-01 01:44:35 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-04-01 01:44:35 +0000 |
commit | 188405545d3a0b51a4c50ddfe9f2c8129e6fdecf (patch) | |
tree | d401a301875bc7bc47136486d253fd2330e99be0 /modules/auto_installation | |
parent | 022bdb8d2b48fec2245e64725f73a58990efd468 (diff) | |
download | puppet-188405545d3a0b51a4c50ddfe9f2c8129e6fdecf.tar puppet-188405545d3a0b51a4c50ddfe9f2c8129e6fdecf.tar.gz puppet-188405545d3a0b51a4c50ddfe9f2c8129e6fdecf.tar.bz2 puppet-188405545d3a0b51a4c50ddfe9f2c8129e6fdecf.tar.xz puppet-188405545d3a0b51a4c50ddfe9f2c8129e6fdecf.zip |
use a class to store variable, to reuse this in define
Diffstat (limited to 'modules/auto_installation')
-rw-r--r-- | modules/auto_installation/manifests/init.pp | 7 |
1 files changed, 5 insertions, 2 deletions
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, } |