From ac644e624e78510a3173c542057c27a1d2395ae3 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 1 Apr 2011 01:44:36 +0000 Subject: create a directory to hold menu file that will be included in the main file --- modules/auto_installation/manifests/init.pp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/auto_installation/manifests/init.pp b/modules/auto_installation/manifests/init.pp index f6e39195..fb327518 100644 --- a/modules/auto_installation/manifests/init.pp +++ b/modules/auto_installation/manifests/init.pp @@ -10,6 +10,9 @@ class auto_installation { class variables { $pxe_dir = "/var/lib/pxe" + # m/ for menu. There is limitation on the path length so + # while we will likely not hit the limit, it may be easier + $pxe_menu_dir = "$pxe_dir/pxelinux.cfg/m/" } class pxe_menu inherits variables { @@ -32,7 +35,13 @@ class auto_installation { file { "$pxe_dir/pxelinux.cfg": ensure => directory, } + # m for menu, there is some limitation on the path lenght so I + # prefer to + file { "$pxe_menu_dir": + ensure => directory, + } + # default file should have exported ressources file { "$pxe_dir/pxelinux.cfg/default": ensure => present, -- cgit v1.2.1