- Timestamp:
- Sep 13, 2009, 10:01:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/puppet/modules/di_netboot_assistant/manifests/init.pp
r381 r382 3 3 # 4 4 5 6 5 class di_netboot_assistant { 7 6 8 # sources.list with the lastest Ubuntu releases 7 package { [ "di-netboot-assistant" ]: ensure => installed } 8 9 # sources.list with the lastest Ubuntu releases 9 10 file { "/etc/di-netboot-assistant/di-sources.list": 10 11 owner => root, … … 14 15 } 15 16 16 # some customization of the pxe menu17 # some customization of the pxe menu 17 18 file { "/etc/di-netboot-assistant/pxelinux.HEAD": 18 19 owner => root, … … 24 25 exec { "di_netboot_assistant_lenny": 25 26 command => "di-netboot-assistant install lenny --arch=amd64,i386 &>/dev/null", 27 creates => "/var/lib/tftpboot/debian-installer/lenny/i386/linux", 26 28 path => "/bin:/sbin:/usr/sbin:/usr/bin", 27 require => [Package["di-netboot-assistant"], File["/etc/di-netboot-assistant/di-sources.list" , File["/etc/di-netboot-assistant/pxelinux.HEAD"]]29 require => [Package["di-netboot-assistant"], File["/etc/di-netboot-assistant/di-sources.list"], File["/etc/di-netboot-assistant/pxelinux.HEAD"]] 28 30 } 29 31 30 ## todo: parse the configurations and a preseed... 31 # add the repo for hardy and jaunty 32 # put the pxelinux.head.HEAD before executing the following 33 # exec : di-netboot-assistant (--verbose --offline) install jaunty --arch=amd64,i386 34 # exec : di-netboot-assistant (--verbose --offline) install hardy --arch=amd64,i386 35 # exec : di-netboot-assistant (--verbose --offline) install lenny --arch=amd64,i386 36 # 32 exec { "di_netboot_assistant_hardy": 33 command => "di-netboot-assistant install hardy --arch=amd64,i386 &>/dev/null", 34 creates => "/var/lib/tftpboot/debian-installer/hardy/i386/linux", 35 path => "/bin:/sbin:/usr/sbin:/usr/bin", 36 require => [Package["di-netboot-assistant"], exec["di_netboot_assistant_lenny"]] 37 } 37 38 38 package { [ "di-netboot-assistant" ]: ensure => installed } 39 39 exec { "di_netboot_assistant_jaunty": 40 command => "di-netboot-assistant install jaunty --arch=amd64,i386 &>/dev/null", 41 creates => "/var/lib/tftpboot/debian-installer/jaunty/i386/linux", 42 path => "/bin:/sbin:/usr/sbin:/usr/bin", 43 require => [Package["di-netboot-assistant"], exec["di_netboot_assistant_lenny"]] 44 } 40 45 }
Note: See TracChangeset
for help on using the changeset viewer.