25 |
=cut |
=cut |
26 |
|
|
27 |
sub webconverger { |
sub webconverger { |
28 |
my $ip = shift; |
my ($ip,$append) = @_; |
29 |
|
|
30 |
upstream::iso( 'http://download.webconverger.com/webc-5.2.iso' ); |
upstream::iso( 'http://download.webconverger.com/webc-5.2.iso' ); |
31 |
|
|
32 |
|
$append ||= 'homepage=http://' . $server::ip . ':7777'; |
33 |
|
|
34 |
pxelinux::config_for_ip( $ip, qq{ |
pxelinux::config_for_ip( $ip, qq{ |
35 |
|
|
36 |
default webconverger |
default webconverger |
37 |
label webconverger |
label webconverger |
38 |
kernel iso/live/vmlinuz-2.6.30-backports.1-486 |
kernel iso/live/vmlinuz-2.6.30-backports.1-486 |
39 |
append initrd=iso/live/initrd.img-2.6.30-backports.1-486 fetch=http://172.16.10.1:7777/webconverger/iso/live/filesystem.squashfs boot=live quiet homepage=http://172.16.10.1:7777/ nonetworking nosudo splash video=vesa:ywrap,mtrr vga=788 nopersistent username=webc hostname=webconverger union=aufs |
append initrd=iso/live/initrd.img-2.6.30-backports.1-486 fetch=http://172.16.10.1:7777/webconverger/iso/live/filesystem.squashfs boot=live quiet nosudo splash video=vesa:ywrap,mtrr vga=788 nopersistent username=webc hostname=webconverger union=aufs $append |
40 |
|
|
41 |
}); |
}); |
42 |
|
|
65 |
}); |
}); |
66 |
} |
} |
67 |
|
|
68 |
|
sub tinycore { |
69 |
|
my $ip = shift; |
70 |
|
upstream::iso( 'http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/release/tinycore_2.2.iso' ); |
71 |
|
pxelinux::config_for_ip( $ip, qq{ |
72 |
|
|
73 |
|
default linux |
74 |
|
label linux |
75 |
|
kernel iso/boot/bzImage |
76 |
|
append initrd=iso/boot/tinycore.gz |
77 |
|
|
78 |
|
}); |
79 |
|
} |
80 |
|
|
81 |
sub for_ip { |
sub for_ip { |
82 |
my $ip = shift; |
my $ip = shift; |
83 |
# debian_live($ip); |
# debian_live($ip); |
84 |
webconverger($ip); |
webconverger($ip); |
85 |
# debirf($ip); |
# debirf($ip); |
86 |
|
# tinycore($ip); |
87 |
# $tftp::dir = "$server::base_dir/tftp/$pxelinux::path_prefix"; |
# $tftp::dir = "$server::base_dir/tftp/$pxelinux::path_prefix"; |
88 |
} |
} |
89 |
|
|