custom webconverger configuration
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 2 Oct 2009 10:23:56 +0000 (10:23 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 2 Oct 2009 10:23:56 +0000 (10:23 +0000)
lib/PXElator/config.pm

index f36e3d6..286b966 100644 (file)
@@ -14,7 +14,7 @@ use File::Slurp;
 
 our $mounted;
 
-sub available { qw/debian_live webconverger debirf tinycore nfsroot openvz printer wrt/ };
+sub available { qw/katalog debian_live webconverger debirf tinycore nfsroot openvz printer wrt/ };
 
 sub debian_live {
        my ($ip) = @_;
@@ -71,6 +71,23 @@ label webconverger
 
 }
 
+sub katalog {
+       my ($ip) = @_;
+       $mounted->{"webconverger/$ip"} ||= upstream::iso( 'http://download.webconverger.com/webc-5.5.iso' );
+       my $hostname = client::conf( $ip => 'hostname' ) || 'katalog';
+       my $homepage = client::conf( $ip => 'webconverger/homepage' => "http://koha.ffzg.hr" );
+       my $fetch    = client::conf( $ip => 'webconverger/fetch' => "http://${server::ip}:7777/webconverger/custom.squashfs" );
+
+       pxelinux::config_for_ip( $ip, qq{
+
+default katalog
+label katalog
+       kernel iso/live/vmlinuz-2.6.30-backports.1-486
+       append initrd=iso/live/initrd.img-2.6.30-backports.1-486 fetch=$fetch boot=live quiet nosudo splash video=vesa:ywrap,mtrr vga=788 nopersistent username=webc hostname=$hostname union=aufs homepage=$homepage locale=hr noprompt
+
+       });
+
+}
 =head1 debirf
 
 debirf is a system that will create diskless, all-in-ram images (kernel and initramfs) that boot entirely into ram and leave the user in a fully functional Debian system.