source: trunk/puppet/modules/di_netboot_assistant/manifests/init.pp @ 381

Last change on this file since 381 was 381, checked in by sebas, 15 years ago

comando para instalar el debian installer de lenny

File size: 1.3 KB
Line 
1# copyright <sebas @ koumbit.org>
2# Licence: GPL
3#
4
5
6class di_netboot_assistant {
7
8# sources.list with the lastest Ubuntu releases
9   file { "/etc/di-netboot-assistant/di-sources.list":
10      owner => root,
11      group => root,
12      mode => 644,
13      source => "puppet:///di_netboot_assistant/di-sources.list"
14   }
15
16# some customization of the pxe menu
17   file { "/etc/di-netboot-assistant/pxelinux.HEAD":
18      owner => root,
19      group => root,
20      mode => 644,
21      source => "puppet:///di_netboot_assistant/pxelinux.HEAD"
22   }
23
24    exec { "di_netboot_assistant_lenny":
25        command => "di-netboot-assistant install lenny --arch=amd64,i386 &>/dev/null",
26        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"]]
28    }
29
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#
37
38    package { [ "di-netboot-assistant" ]: ensure => installed }
39
40}
Note: See TracBrowser for help on using the repository browser.