/[adm]/puppet/modules/auto_installation/manifests/init.pp
ViewVC logotype

Diff of /puppet/modules/auto_installation/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1444 by misc, Fri Apr 1 01:44:36 2011 UTC revision 1445 by misc, Fri Apr 1 01:44:38 2011 UTC
# Line 41  class auto_installation { Line 41  class auto_installation {
41              ensure => directory,              ensure => directory,
42          }          }
43    
44                    # TODO make it tag aware
45            $menu_entries = list_exported_ressources('Auto_installation::Pxe_menu_base')
46          # default file should have exported ressources          # default file should have exported ressources
47          file { "$pxe_dir/pxelinux.cfg/default":          file { "$pxe_dir/pxelinux.cfg/default":
48              ensure => present,              ensure => present,
49              content => template('auto_installation/default'),              content => template('auto_installation/default'),
50          }          }
51              Auto_installation::Pxe_menu_base <<| tag == $fqdn |>>
52        }
53    
54        define pxe_menu_base($content) {
55            include auto_installation::variables
56            file { "$auto_installation::variables::pxe_menu_dir/$name":
57                ensure => present,
58                content => $content,
59            }
60        }
61    
62        define pxe_menu_entry($kernel_path, $append) {
63            @@auto_installation::pxe_menu_base { $name:
64                tag => $fqdn,  
65                content => template('auto_installation/menu'),
66            }
67      }      }
68    
69      # define pxe_linux_entry      # define pxe_linux_entry

Legend:
Removed from v.1444  
changed lines
  Added in v.1445

  ViewVC Help
Powered by ViewVC 1.1.30