commit f0e7100fff3a37097df95a456001a187b7b8fdc9 Author: Michael Prokop Date: Thu May 12 01:22:27 2011 +0000 provide netscript and templates as separate package The netscript does more than just vmbuilder stuff nowadays, therefore move it from the vmbuilder package to a separate package. ngcp-deployment provides everything needed for the deployment itself, whereas ngcp-vmbuilder takes care of just building the VMware/Virtualbox images based on the disk image which might be the result of ngcp-deployment. While at it provide the netscript as /usr/sbin/ngcp-deployment so it can be used offline on the deployment ISOs itself as well (offline usage by using /srv/mirror as mirror being WIP). From: Michael Prokop diff --git a/templates/boot/isolinux/addon_25_gxpe.cfg b/templates/boot/isolinux/addon_25_gxpe.cfg new file mode 100644 index 0000000..c699402 --- /dev/null +++ b/templates/boot/isolinux/addon_25_gxpe.cfg @@ -0,0 +1,9 @@ +#label ipxe +# menu label Run iP^XE +# kernel /boot/addons/ipxe.lkrn +# +# text help +# Start Etherboot/iPXE for booting via +# network (PXE). +# endtext +# diff --git a/templates/boot/isolinux/default.cfg b/templates/boot/isolinux/default.cfg new file mode 100644 index 0000000..a267eb0 --- /dev/null +++ b/templates/boot/isolinux/default.cfg @@ -0,0 +1,149 @@ +# TODO: +# ngcpip=... - set IP address of installed system (defaults to dhcp) (WIP) +# ngcpprofile=... - download additional configuration profile (WIP) + +default grml +label grml + menu DEFAULT + menu label Rescue system boot (%VERSION%, %ARCH%) + kernel /boot/%SHORT_NAME%/linux26 + append initrd=/boot/%SHORT_NAME%/initrd.gz boot=live bootid=%BOOTID% apm=power-off vga=791 quiet nomce noquick + text help + Automatic deployment system for the + Sipwise Next Generation Communication + Platform. http://sipwise.com/ + + Based on http://grml.org/ + endtext + +label ce + menu label Install sip:providerCE - DHCP + kernel /boot/%SHORT_NAME%/linux26 + append initrd=/boot/%SHORT_NAME%/initrd.gz boot=live bootid=%BOOTID% apm=power-off vga=791 quiet nomce ngcpce netscript=http://deb.sipwise.com/kantan/deployment.sh ngcphostname=spce + + text help + Install sip:provider community edition. + Retrieve network configuration via DHCP. + endtext + +label cenw + menu label Install sip:providerCE - static NW config + kernel /boot/%SHORT_NAME%/linux26 + append initrd=/boot/%SHORT_NAME%/initrd.gz boot=live bootid=%BOOTID% apm=power-off vga=791 quiet nomce ngcpce netscript=http://deb.sipwise.com/kantan/deployment.sh ngcphostname=spce ip=192.168.51.123::192.168.51.1:255.255.255.0:spce:eth0:off dns=192.168.51.2 + + text help + Install sip:provider community edition. + Use static IP configuration, adjust in + boot command line if necessary. + endtext + +label prosp1 + menu label Install sip:providerPRO - sp1 / DHCP + kernel /boot/%SHORT_NAME%/linux26 + append initrd=/boot/%SHORT_NAME%/initrd.gz boot=live bootid=%BOOTID% apm=power-off vga=791 quiet nomce ngcppro netscript=http://deb.sipwise.com/kantan/deployment.sh ngcpsp1 ngcphostname=sp1 + + text help + Install sip:provider professional edition. + Install first node of HA setup. + Retrieve network configuration via DHCP. + endtext + + +label prosp1nw + menu label Install sip:providerPRO - sp1 / static NW + kernel /boot/%SHORT_NAME%/linux26 + append initrd=/boot/%SHORT_NAME%/initrd.gz boot=live bootid=%BOOTID% apm=power-off vga=791 quiet nomce ngcppro netscript=http://deb.sipwise.com/kantan/deployment.sh ngcpsp1 ngcphostname=sp1 ip=192.168.51.123::192.168.51.1:255.255.255.0:spce:eth0:off dns=192.168.51.2 + + text help + Install sip:provider professional edition. + Install first node of HA setup. + Use static IP configuration, adjust in + boot command line if necessary. + endtext + +label prosp2 + menu label Install sip:providerPRO - sp2 / DHCP + kernel /boot/%SHORT_NAME%/linux26 + append initrd=/boot/%SHORT_NAME%/initrd.gz boot=live bootid=%BOOTID% apm=power-off vga=791 quiet nomce ngcppro netscript=http://deb.sipwise.com/kantan/deployment.sh ngcpsp2 ngcphostname=sp2 + + text help + Install sip:provider professional edition. + Install second node of HA setup. + Retrieve network configuration via DHCP. + endtext + +label prosp2nw + menu label Install sip:providerPRO - sp2 / static NW + kernel /boot/%SHORT_NAME%/linux26 + append initrd=/boot/%SHORT_NAME%/initrd.gz boot=live bootid=%BOOTID% apm=power-off vga=791 quiet nomce ngcppro netscript=http://deb.sipwise.com/kantan/deployment.sh ngcpsp2 ngcphostname=sp2 ip=192.168.51.123::192.168.51.1:255.255.255.0:spce:eth0:off dns=192.168.51.2 + + text help + Install sip:provider professional edition. + Install second node of HA setup. + Use static IP configuration, adjust in + boot command line if necessary. + endtext + +label squeeze + menu label Install Debian/squeeze 64bit / DHCP + kernel /boot/%SHORT_NAME%/linux26 + append initrd=/boot/%SHORT_NAME%/initrd.gz boot=live bootid=%BOOTID% apm=power-off vga=791 quiet nomce nongcp netscript=http://deb.sipwise.com/kantan/deployment.sh + + text help + Install Debian squeeze, 64bit. + Does NOT install sip:provider platform. + Retrieve network configuration via DHCP. + endtext + + +label squeezenw + menu label Install Debian/squeeze 64bit / static NW + kernel /boot/%SHORT_NAME%/linux26 + append initrd=/boot/%SHORT_NAME%/initrd.gz boot=live bootid=%BOOTID% apm=power-off vga=791 quiet nomce nongcp netscript=http://deb.sipwise.com/kantan/deployment.sh ip=192.168.51.123::192.168.51.1:255.255.255.0:spce:eth0:off dns=192.168.51.2 + + text help + Install Debian squeeze, 64bit. + Does NOT install sip:provider platform. + Use static IP configuration, adjust in + boot command line if necessary. + endtext + +label fw + menu label Automatic Firmware upgrades / DHCP + kernel /boot/%SHORT_NAME%/linux26 + append initrd=/boot/%SHORT_NAME%/initrd.gz boot=live bootid=%BOOTID% apm=power-off vga=791 quiet nomce noinstall nongcp nodebian ngcpfirmware netscript=http://deb.sipwise.com/kantan/deployment.sh + + text help + Install recent firmware images for IBM hardware. + Retrieve network configuration via DHCP. + endtext + +label fwnw + menu label Automatic Firmware upgrades / static NW + kernel /boot/%SHORT_NAME%/linux26 + append initrd=/boot/%SHORT_NAME%/initrd.gz boot=live bootid=%BOOTID% apm=power-off vga=791 quiet nomce noinstall nongcp nodebian ngcpfirmware netscript=http://deb.sipwise.com/kantan/deployment.sh ip=192.168.51.123::192.168.51.1:255.255.255.0:spce:eth0:off dns=192.168.51.2 + + text help + Install recent firmware images for IBM hardware. + Use static IP configuration, adjust in + boot command line if necessary. + endtext + +label ipxe + menu label Boot from network (iP^XE) + kernel /boot/addons/ipxe.lkrn + + text help + Start Etherboot/iPXE for booting via + network (PXE). + endtext + +label hd + menu label ^Boot from local Hard Disk + localboot 0x80 + text help + Boot from first local hard disk - + if present and bootable. + endtext + +# EOF diff --git a/templates/boot/isolinux/hd.cfg b/templates/boot/isolinux/hd.cfg new file mode 100644 index 0000000..c0acc25 --- /dev/null +++ b/templates/boot/isolinux/hd.cfg @@ -0,0 +1,9 @@ +# local disk: +#label hd +# menu label ^Boot from Hard Disk +# localboot 0x80 +# text help +# Boot from first local hard disk - +# if present and bootable. +# endtext +# diff --git a/templates/boot/isolinux/sipwise.png b/templates/boot/isolinux/sipwise.png new file mode 100644 index 0000000..4a46931 Binary files /dev/null and b/templates/boot/isolinux/sipwise.png differ diff --git a/templates/boot/isolinux/vesamenu.cfg b/templates/boot/isolinux/vesamenu.cfg new file mode 100644 index 0000000..f9c59a9 --- /dev/null +++ b/templates/boot/isolinux/vesamenu.cfg @@ -0,0 +1,40 @@ +## background image +menu background sipwise.png + +## size +menu width 50 +menu margin 0 +menu rows 13 +menu tabmsgrow 18 +menu helpmsgrow 21 +menu cmdlinerow 22 +menu timeoutrow 26 +menu hshift 2 +menu vshift 1 + +## colors +# menu color element ansi foreground background shadow +menu color border 30;44 #00000000 #00000000 none +menu color cmdline 0 #ff000000 #00000000 none +menu color cmdmark 1;36;40 #ffff0000 #00000000 none +menu color disabled 0 #ff006600 #00000000 +menu color help 0 #ff000000 #00000000 none +menu color hotkey 0 #ff000000 #00000000 none +menu color hotsel 0 #ff000000 #ff006600 +menu color screen 37;40 #00000000 #00000000 none +menu color scrollbar 30;44 #00000000 #00000000 none +menu color sel 7 #ff000000 #ff006600 +menu color tabmsg 0 #ffffffff #00000000 none +menu color timeout 0 #ff000000 #00000000 +menu color timeout_msg 0 #ff808080 #00000000 +menu color title 0 #ff000000 #00000000 none +menu color unsel 0 #ff000000 #00000000 none + +## text +menu title Grml-Sipwise - The VoIP experts +menu tabmsg Press ENTER to boot or TAB to edit a menu entry +menu autoboot Automatic boot in # second{,s}... + +## source files +include distri.cfg +default vesamenu.c32