source: trunk/puppet/manifests/classes/debian-installers.pp @ 456

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

agrego la plataforma amd64

File size: 2.6 KB
Line 
1
2#    file { "/var/www/d-i/":
3#        ensure => directory,
4#        source => "puppet://$servername/secrets/d-i",
5#        recurse => true, purge => true, force => true;
6
7class installers {
8    file { "/var/lib/tftpboot/":
9        ensure => "directory",
10        require => Package["tftpd-hpa"];
11
12    "/var/lib/tftpboot/pxelinux.cfg/":
13        ensure => "directory",
14        require => [Package["tftpd-hpa"], File["/var/lib/tftpboot/"]];
15#        source => "puppet://$servername/files/pxelinux.cfg/";
16
17    "/var/lib/tftpboot/debian-installer/":
18        ensure => "directory",
19        require => [Package["tftpd-hpa"], File["/var/lib/tftpboot/"]];
20    }
21
22    fetch_netboot { [ "i386", "amd64" ]:  }
23
24    define fetch_netboot($mirror = "http://debian.mirror.iweb.ca/debian") {
25
26#      file { "/var/lib/tftpboot/debian-installer/$name/pxelinux.cfg":
27#        ensure => "/var/lib/tftpboot/pxelinux.cfg",
28#        require => [ File["/var/lib/tftpboot/debian-installer/$name/"], File["/var/lib/tftpboot/pxelinux.cfg/"] ],
29#      }
30
31      file { "/var/lib/tftpboot/debian-installer/$name/":
32        ensure => "directory",
33        require => [Package["tftpd-hpa"], File["/var/lib/tftpboot/debian-installer/"]]
34      }
35
36#      exec { "wget -O /var/lib/tftpboot/debian-installer/$name/netboot.tar.gz -q $mirror/dists/stable/main/installer-$name/current/images/netboot/netboot.tar.gz":
37#        creates => "/var/lib/tftpboot/debian-installer/$name/netboot.tar.gz",
38#        path => "/usr/bin",
39#        require => [Package["tftpd-hpa"], File["/var/lib/tftpboot/pxelinux.cfg/"]]
40#      }
41
42      exec { "wget -O /var/lib/tftpboot/debian-installer/$name/initrd.gz -q $mirror/dists/stable/main/installer-$name/current/images/netboot/debian-installer/$name/initrd.gz":
43        creates => "/var/lib/tftpboot/debian-installer/$name/initrd.gz",
44        path => "/usr/bin",
45        require => [Package["tftpd-hpa"], File["/var/lib/tftpboot/debian-installer/$name/"]]
46      }
47      exec { "wget -O /var/lib/tftpboot/debian-installer/$name/linux -q $mirror/dists/stable/main/installer-$name/current/images/netboot/debian-installer/$name/linux":
48        creates => "/var/lib/tftpboot/debian-installer/$name/linux",
49        path => "/usr/bin",
50        require => [Package["tftpd-hpa"], File["/var/lib/tftpboot/debian-installer/$name/"]]
51      }
52#      exec { "wget -O /var/lib/tftpboot/debian-installer/$name/pxelinux.0 -q $mirror/dists/stable/main/installer-$name/current/images/netboot/pxelinux.0":
53#        creates => "/var/lib/tftpboot/debian-installer/$name/pxelinux.0",
54#        path => "/usr/bin",
55#        require => [Package["tftpd-hpa"], File["/var/lib/tftpboot/debian-installer/$name/"]]
56#      }
57    }
58}
Note: See TracBrowser for help on using the repository browser.