[Fai-commit] r6719 - in test-suite/scenarios: . configs configs/atom01 configs/atom01/apt configs/sst01 configs/sst01/apt configs/sst02 configs/sst02/apt

Michael Tautschnig mt at alioth.debian.org
Sat Oct 22 13:56:42 UTC 2011


Author: mt
Date: 2011-10-22 13:56:41 +0000 (Sat, 22 Oct 2011)
New Revision: 6719

Added:
   test-suite/scenarios/configs/
   test-suite/scenarios/configs/atom01/
   test-suite/scenarios/configs/atom01/NFSROOT
   test-suite/scenarios/configs/atom01/apt/
   test-suite/scenarios/configs/atom01/apt/sources.list
   test-suite/scenarios/configs/atom01/fai.conf
   test-suite/scenarios/configs/atom01/grub.cfg
   test-suite/scenarios/configs/atom01/live.conf
   test-suite/scenarios/configs/atom01/make-fai-nfsroot.conf
   test-suite/scenarios/configs/atom01/menu.lst
   test-suite/scenarios/configs/sst01/
   test-suite/scenarios/configs/sst01/NFSROOT
   test-suite/scenarios/configs/sst01/apt/
   test-suite/scenarios/configs/sst01/apt/sources.list
   test-suite/scenarios/configs/sst01/fai.conf
   test-suite/scenarios/configs/sst01/grub.cfg
   test-suite/scenarios/configs/sst01/live.conf
   test-suite/scenarios/configs/sst01/make-fai-nfsroot.conf
   test-suite/scenarios/configs/sst01/menu.lst
   test-suite/scenarios/configs/sst02/
   test-suite/scenarios/configs/sst02/NFSROOT
   test-suite/scenarios/configs/sst02/apt/
   test-suite/scenarios/configs/sst02/apt/sources.list
   test-suite/scenarios/configs/sst02/fai.conf
   test-suite/scenarios/configs/sst02/grub.cfg
   test-suite/scenarios/configs/sst02/live.conf
   test-suite/scenarios/configs/sst02/make-fai-nfsroot.conf
   test-suite/scenarios/configs/sst02/menu.lst
Removed:
   test-suite/scenarios/tests.txt
Log:
Describe each test using a separate etc/fai/ contents

- fai.conf properly contains the URL to the config space
- hostname defined by directory name


Added: test-suite/scenarios/configs/atom01/NFSROOT
===================================================================
--- test-suite/scenarios/configs/atom01/NFSROOT	                        (rev 0)
+++ test-suite/scenarios/configs/atom01/NFSROOT	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,42 @@
+# package list for creating the NFSROOT
+
+PACKAGES aptitude
+nfs-common fai-nfsroot module-init-tools ssh rdate lshw portmap
+rsync lftp less dump reiserfsprogs e2fsprogs usbutils
+hwinfo psmisc pciutils hdparm smartmontools parted mdadm lvm2
+dnsutils ntpdate dosfstools jove xfsprogs xfsdump
+procinfo dialog discover
+console-tools console-common
+iproute udev subversion liblinux-lvm-perl
+
+# needed for the simple examples
+cfengine2 libapt-pkg-perl
+
+# you should not edit the lines below
+# architecture dependend list of packages that are installed
+
+PACKAGES aptitude I386
+grub lilo read-edid
+linux-image-486
+
+# packages for lenny:
+# linux-image-486 aufs-modules-2.6-486
+
+PACKAGES aptitude AMD64
+grub lilo
+linux-image-2.6-amd64
+# packages for lenny:
+# linux-image-2.6-amd64 aufs-modules-2.6-amd64
+
+PACKAGES aptitude IA64
+elilo gnu-efi efibootmgr
+
+PACKAGES aptitude SPARC
+silo sparc-utils
+
+PACKAGES aptitude ALPHA
+aboot
+
+PACKAGES aptitude POWERPC
+linux-image-2.6-powerpc
+yaboot

Added: test-suite/scenarios/configs/atom01/apt/sources.list
===================================================================
--- test-suite/scenarios/configs/atom01/apt/sources.list	                        (rev 0)
+++ test-suite/scenarios/configs/atom01/apt/sources.list	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,8 @@
+# These lines should work for many sites
+# A more comprehensive example is at /usr/share/doc/fai-doc/examples/etc
+
+deb http://faiserver/debian squeeze main contrib non-free
+deb http://faiserver/debian-security squeeze/updates main contrib non-free
+
+# repository that may contain newer fai packages for squeeze
+deb http://faiserver/download squeeze koeln

Added: test-suite/scenarios/configs/atom01/fai.conf
===================================================================
--- test-suite/scenarios/configs/atom01/fai.conf	                        (rev 0)
+++ test-suite/scenarios/configs/atom01/fai.conf	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,37 @@
+# $Id$
+
+# /etc/fai/fai.conf -- configuration for FAI (Fully Automatic Installation)
+
+# how to access the fai config space
+# If undefined here, make-fai-nfsroot/fai-setup will use default value
+# nfs://<install server>/$FAI_CONFIGDIR
+# supported URL-types: nfs, file, cvs, cvs+ssh, svn+file, svn+http,
+# git, git+http, hg+http
+FAI_CONFIG_SRC=svn://anonscm.debian.org/fai/trunk/examples/simple
+
+# LOGUSER: an account on the install server which saves all log-files
+# and which can change the kernel that is booted via network.
+# Configure .rhosts for this account and PAM, so that root can log in
+# from all install clients without password. This account should have
+# write permissions for /srv/tftp/fai. For example, you can use write
+# permissions for the group linuxadm. chgrp linuxadm /srv/tftp/fai;chmod
+# g+w /srv/tftp/fai. If the variable is undefined, this feature is disabled.
+# Define it, to enable it, eg. LOGUSER=fai
+#LOGUSER=fai
+
+# set protocol type for saving logs. Values: ssh, rsh, ftp
+FAI_LOGPROTO=ssh
+
+# Access to Debian mirror via NFS mounted directory
+# If FAI_DEBMIRROR is defined, install clients mount it to $MNTPOINT
+#FAI_DEBMIRROR=yournfs debianmirror:/path/to/debianmirror
+
+
+# The following variables are read only for almost every user.
+# Do not change them unless you know what you are doing!
+
+# mount point where the mirror will be mounted
+MNTPOINT=/media/mirror
+
+# the local configuration directory on the install client
+FAI=/var/lib/fai/config

Added: test-suite/scenarios/configs/atom01/grub.cfg
===================================================================
--- test-suite/scenarios/configs/atom01/grub.cfg	                        (rev 0)
+++ test-suite/scenarios/configs/atom01/grub.cfg	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,77 @@
+## grub2 configuration
+set default=4
+set timeout=20
+
+if loadfont /boot/grub/ascii.pf2 ; then
+   insmod png
+   set gfxmode=640x480
+   insmod gfxterm
+   insmod vbe
+   terminal_output gfxterm
+fi
+
+if background_image /boot/grub/fai.png ; then
+  set color_normal=black/black
+  set color_highlight=red/black
+  set menu_color_normal=black/black
+  set menu_color_highlight=black/yellow
+else
+  set menu_color_normal=white/black
+  set menu_color_highlight=black/yellow
+fi
+
+# make sure we can access partitions
+insmod part_msdos
+insmod part_gpt
+
+if [ ${iso_path} ] ; then
+    set loopback="findiso=${iso_path}"
+fi
+
+
+menuentry "+------------------------------------------------------+" {
+    set gfxpayload=1024x768
+    linux   /boot/vmlinuz boot=live
+}
+menuentry "|    FAI-CD        (c) Thomas Lange, lange at debian.org  |" {
+    set gfxpayload=1024x768
+    linux   /boot/vmlinuz boot=live
+}
+menuentry "| _VERSIONSTRING_ |" {
+    set gfxpayload=1024x768
+    linux   /boot/vmlinuz boot=live
+}
+menuentry "+------------------------------------------------------+" {
+    set gfxpayload=1024x768
+    linux   /boot/vmlinuz boot=live
+}
+
+menuentry "Fully Automatic Installation - demohost (pw: installme)" {
+    set gfxpayload=1024x768
+    linux   /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=demohost
+    initrd  /boot/initrd.img
+}
+
+menuentry "Fully Automatic Installation with GNOME (pw: installme)" {
+    set gfxpayload=1024x768
+    linux /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=gnomehost
+    initrd /boot/initrd.img
+}
+
+menuentry "Fully Automatic Installation - faiserver (pw: installme)" {
+    set gfxpayload=1024x768
+    linux /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=faiserver
+    initrd /boot/initrd.img
+}
+
+menuentry "FAI rescue system, no installation" {
+    set gfxpayload=1024x768
+    linux /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=sysinfo hostname=demohost
+    initrd /boot/initrd.img
+}
+
+menuentry "Boot OS of first partition on first disk" {
+    set root=(hd0,1)
+    chainloader +1
+}
+

Added: test-suite/scenarios/configs/atom01/live.conf
===================================================================
--- test-suite/scenarios/configs/atom01/live.conf	                        (rev 0)
+++ test-suite/scenarios/configs/atom01/live.conf	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,33 @@
+# /etc/live.conf - configuration file for live-initramfs(7)
+
+export BUILD_SYSTEM="Debian"
+
+export UNIONTYPE="aufs"
+export NOAUTOLOGIN="Yes"
+export NOFASTBOOT="Yes"
+export SELINUX_INIT="No"
+export NOSUDO="Yes"
+export NOUSER="Yes"
+export NOXAUTOCONFIG="Yes"
+export NOFSTAB="Yes"
+export NOHOSTS="Yes"
+
+export NOACCESSIBILITY="Yes"
+export NOAPPARMOR="Yes"
+export NOAPTCDROM="Yes"
+export NOCONSOLEKEYBOARD="Yes"
+export NOKPERSONALIZER="Yes"
+export NOKWALLET="Yes"
+export NOLANGUAGESELECTOR="Yes"
+export NOLOCALES="Yes"
+export NONETWORKING="Yes"
+export NOPERSISTENT="Yes"
+export NOPOWERMANAGEMENT="Yes"
+export NOPRESEED="Yes"
+export NOPROGRAMCRASHES="Yes"
+export NORESTRICTEDMANAGER="Yes"
+export NOTIMEZONE="Yes"
+export NOUPDATENOTIFIER="Yes"
+export NOXAUTOLOGIN="Yes"
+export NOXSCREENSAVER="Yes"
+export NOGNOMEPANEL="Yes"

Added: test-suite/scenarios/configs/atom01/make-fai-nfsroot.conf
===================================================================
--- test-suite/scenarios/configs/atom01/make-fai-nfsroot.conf	                        (rev 0)
+++ test-suite/scenarios/configs/atom01/make-fai-nfsroot.conf	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,36 @@
+# these variables are only used by make-fai-nfsroot(8)
+# here you can use also variables defined in fai.conf
+
+# directory on the install server where the nfsroot for FAI is
+# created, approx size: 390MB, also defined in bootptab or dhcp.conf
+NFSROOT=/srv/fai/nfsroot-fai12
+
+# TFTP directory for FAI files
+TFTPROOT=/srv/tftp/fai
+
+# location of the configuration space on the install server
+FAI_CONFIGDIR=/srv/fai/config
+
+# Add a line for mirrorhost and installserver when DNS is not available
+# on the clients. This line(s) will be added to $nfsroot/etc/hosts.
+NFSROOT_ETC_HOSTS="192.168.2.250 faiserver"
+
+# Parameter for debootstrap: "<suite> <mirror>"
+FAI_DEBOOTSTRAP="squeeze http://faiserver/debian"
+
+# the encrypted (with md5 or crypt) root password on all install clients during
+# installation process; used when log in via ssh; default pw is: fai
+FAI_ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
+
+# location of a identity.pub file; this user can log to the install
+# clients in as root without a password; only useful with FAI_FLAGS="sshd"
+#SSH_IDENTITY=/home/admin/.ssh/identity.pub
+
+# directory of hooks to be sourced at the end of make-fai-nfsroot,
+# i.e they have to be shell scripts.
+#NFSROOT_HOOKS=/etc/fai/nfsroot-hooks/
+
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# following lines should be read only for most of you
+
+FAI_DEBOOTSTRAP_OPTS="--exclude=info"

Added: test-suite/scenarios/configs/atom01/menu.lst
===================================================================
--- test-suite/scenarios/configs/atom01/menu.lst	                        (rev 0)
+++ test-suite/scenarios/configs/atom01/menu.lst	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,44 @@
+# grub menu.lst for fai-cd
+
+# Boot automatically after some secs.
+timeout 30
+
+color light-gray/black light-gray/red
+default 6
+
+title |
+root (cd)
+title +------------------------------------------------------+
+root (cd)
+title |    FAI-CD        (c) Thomas Lange, lange at debian.org  |
+root (cd)
+title | _VERSIONSTRING_ |
+root (cd)
+title +------------------------------------------------------+
+root (cd)
+title |
+root (cd)
+title |
+
+title boot from local disk
+rootnoverify (hd0)
+chainloader +1
+
+title Fully Automatic Installation - demohost (pw: installme)
+password installme
+kernel /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=demohost
+initrd /boot/initrd.img
+
+title Fully Automatic Installation with GNOME (pw: installme)
+password installme
+kernel /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=gnomehost
+initrd /boot/initrd.img
+
+title Fully Automatic Installation - faiserver (pw: installme)
+password installme
+kernel /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=faiserver
+initrd /boot/initrd.img
+
+title FAI rescue system, no installation
+kernel /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=sysinfo hostname=demohost
+initrd /boot/initrd.img

Added: test-suite/scenarios/configs/sst01/NFSROOT
===================================================================
--- test-suite/scenarios/configs/sst01/NFSROOT	                        (rev 0)
+++ test-suite/scenarios/configs/sst01/NFSROOT	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,42 @@
+# package list for creating the NFSROOT
+
+PACKAGES aptitude
+nfs-common fai-nfsroot module-init-tools ssh rdate lshw portmap
+rsync lftp less dump reiserfsprogs e2fsprogs usbutils
+hwinfo psmisc pciutils hdparm smartmontools parted mdadm lvm2
+dnsutils ntpdate dosfstools jove xfsprogs xfsdump
+procinfo dialog discover
+console-tools console-common
+iproute udev subversion liblinux-lvm-perl
+
+# needed for the simple examples
+cfengine2 libapt-pkg-perl
+
+# you should not edit the lines below
+# architecture dependend list of packages that are installed
+
+PACKAGES aptitude I386
+grub lilo read-edid
+linux-image-486
+
+# packages for lenny:
+# linux-image-486 aufs-modules-2.6-486
+
+PACKAGES aptitude AMD64
+grub lilo
+linux-image-2.6-amd64
+# packages for lenny:
+# linux-image-2.6-amd64 aufs-modules-2.6-amd64
+
+PACKAGES aptitude IA64
+elilo gnu-efi efibootmgr
+
+PACKAGES aptitude SPARC
+silo sparc-utils
+
+PACKAGES aptitude ALPHA
+aboot
+
+PACKAGES aptitude POWERPC
+linux-image-2.6-powerpc
+yaboot

Added: test-suite/scenarios/configs/sst01/apt/sources.list
===================================================================
--- test-suite/scenarios/configs/sst01/apt/sources.list	                        (rev 0)
+++ test-suite/scenarios/configs/sst01/apt/sources.list	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,8 @@
+# These lines should work for many sites
+# A more comprehensive example is at /usr/share/doc/fai-doc/examples/etc
+
+deb http://faiserver/debian squeeze main contrib non-free
+deb http://faiserver/debian-security squeeze/updates main contrib non-free
+
+# repository that may contain newer fai packages for squeeze
+deb http://faiserver/download squeeze koeln

Added: test-suite/scenarios/configs/sst01/fai.conf
===================================================================
--- test-suite/scenarios/configs/sst01/fai.conf	                        (rev 0)
+++ test-suite/scenarios/configs/sst01/fai.conf	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,37 @@
+# $Id$
+
+# /etc/fai/fai.conf -- configuration for FAI (Fully Automatic Installation)
+
+# how to access the fai config space
+# If undefined here, make-fai-nfsroot/fai-setup will use default value
+# nfs://<install server>/$FAI_CONFIGDIR
+# supported URL-types: nfs, file, cvs, cvs+ssh, svn+file, svn+http,
+# git, git+http, hg+http
+FAI_CONFIG_SRC=svn://anonscm.debian.org/fai/test-suite/scenarios/setup-storage-tests
+
+# LOGUSER: an account on the install server which saves all log-files
+# and which can change the kernel that is booted via network.
+# Configure .rhosts for this account and PAM, so that root can log in
+# from all install clients without password. This account should have
+# write permissions for /srv/tftp/fai. For example, you can use write
+# permissions for the group linuxadm. chgrp linuxadm /srv/tftp/fai;chmod
+# g+w /srv/tftp/fai. If the variable is undefined, this feature is disabled.
+# Define it, to enable it, eg. LOGUSER=fai
+#LOGUSER=fai
+
+# set protocol type for saving logs. Values: ssh, rsh, ftp
+FAI_LOGPROTO=ssh
+
+# Access to Debian mirror via NFS mounted directory
+# If FAI_DEBMIRROR is defined, install clients mount it to $MNTPOINT
+#FAI_DEBMIRROR=yournfs debianmirror:/path/to/debianmirror
+
+
+# The following variables are read only for almost every user.
+# Do not change them unless you know what you are doing!
+
+# mount point where the mirror will be mounted
+MNTPOINT=/media/mirror
+
+# the local configuration directory on the install client
+FAI=/var/lib/fai/config

Added: test-suite/scenarios/configs/sst01/grub.cfg
===================================================================
--- test-suite/scenarios/configs/sst01/grub.cfg	                        (rev 0)
+++ test-suite/scenarios/configs/sst01/grub.cfg	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,77 @@
+## grub2 configuration
+set default=4
+set timeout=20
+
+if loadfont /boot/grub/ascii.pf2 ; then
+   insmod png
+   set gfxmode=640x480
+   insmod gfxterm
+   insmod vbe
+   terminal_output gfxterm
+fi
+
+if background_image /boot/grub/fai.png ; then
+  set color_normal=black/black
+  set color_highlight=red/black
+  set menu_color_normal=black/black
+  set menu_color_highlight=black/yellow
+else
+  set menu_color_normal=white/black
+  set menu_color_highlight=black/yellow
+fi
+
+# make sure we can access partitions
+insmod part_msdos
+insmod part_gpt
+
+if [ ${iso_path} ] ; then
+    set loopback="findiso=${iso_path}"
+fi
+
+
+menuentry "+------------------------------------------------------+" {
+    set gfxpayload=1024x768
+    linux   /boot/vmlinuz boot=live
+}
+menuentry "|    FAI-CD        (c) Thomas Lange, lange at debian.org  |" {
+    set gfxpayload=1024x768
+    linux   /boot/vmlinuz boot=live
+}
+menuentry "| _VERSIONSTRING_ |" {
+    set gfxpayload=1024x768
+    linux   /boot/vmlinuz boot=live
+}
+menuentry "+------------------------------------------------------+" {
+    set gfxpayload=1024x768
+    linux   /boot/vmlinuz boot=live
+}
+
+menuentry "Fully Automatic Installation - demohost (pw: installme)" {
+    set gfxpayload=1024x768
+    linux   /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=demohost
+    initrd  /boot/initrd.img
+}
+
+menuentry "Fully Automatic Installation with GNOME (pw: installme)" {
+    set gfxpayload=1024x768
+    linux /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=gnomehost
+    initrd /boot/initrd.img
+}
+
+menuentry "Fully Automatic Installation - faiserver (pw: installme)" {
+    set gfxpayload=1024x768
+    linux /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=faiserver
+    initrd /boot/initrd.img
+}
+
+menuentry "FAI rescue system, no installation" {
+    set gfxpayload=1024x768
+    linux /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=sysinfo hostname=demohost
+    initrd /boot/initrd.img
+}
+
+menuentry "Boot OS of first partition on first disk" {
+    set root=(hd0,1)
+    chainloader +1
+}
+

Added: test-suite/scenarios/configs/sst01/live.conf
===================================================================
--- test-suite/scenarios/configs/sst01/live.conf	                        (rev 0)
+++ test-suite/scenarios/configs/sst01/live.conf	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,33 @@
+# /etc/live.conf - configuration file for live-initramfs(7)
+
+export BUILD_SYSTEM="Debian"
+
+export UNIONTYPE="aufs"
+export NOAUTOLOGIN="Yes"
+export NOFASTBOOT="Yes"
+export SELINUX_INIT="No"
+export NOSUDO="Yes"
+export NOUSER="Yes"
+export NOXAUTOCONFIG="Yes"
+export NOFSTAB="Yes"
+export NOHOSTS="Yes"
+
+export NOACCESSIBILITY="Yes"
+export NOAPPARMOR="Yes"
+export NOAPTCDROM="Yes"
+export NOCONSOLEKEYBOARD="Yes"
+export NOKPERSONALIZER="Yes"
+export NOKWALLET="Yes"
+export NOLANGUAGESELECTOR="Yes"
+export NOLOCALES="Yes"
+export NONETWORKING="Yes"
+export NOPERSISTENT="Yes"
+export NOPOWERMANAGEMENT="Yes"
+export NOPRESEED="Yes"
+export NOPROGRAMCRASHES="Yes"
+export NORESTRICTEDMANAGER="Yes"
+export NOTIMEZONE="Yes"
+export NOUPDATENOTIFIER="Yes"
+export NOXAUTOLOGIN="Yes"
+export NOXSCREENSAVER="Yes"
+export NOGNOMEPANEL="Yes"

Added: test-suite/scenarios/configs/sst01/make-fai-nfsroot.conf
===================================================================
--- test-suite/scenarios/configs/sst01/make-fai-nfsroot.conf	                        (rev 0)
+++ test-suite/scenarios/configs/sst01/make-fai-nfsroot.conf	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,36 @@
+# these variables are only used by make-fai-nfsroot(8)
+# here you can use also variables defined in fai.conf
+
+# directory on the install server where the nfsroot for FAI is
+# created, approx size: 390MB, also defined in bootptab or dhcp.conf
+NFSROOT=/srv/fai/nfsroot-fai12
+
+# TFTP directory for FAI files
+TFTPROOT=/srv/tftp/fai
+
+# location of the configuration space on the install server
+FAI_CONFIGDIR=/srv/fai/config
+
+# Add a line for mirrorhost and installserver when DNS is not available
+# on the clients. This line(s) will be added to $nfsroot/etc/hosts.
+NFSROOT_ETC_HOSTS="192.168.2.250 faiserver"
+
+# Parameter for debootstrap: "<suite> <mirror>"
+FAI_DEBOOTSTRAP="squeeze http://faiserver/debian"
+
+# the encrypted (with md5 or crypt) root password on all install clients during
+# installation process; used when log in via ssh; default pw is: fai
+FAI_ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
+
+# location of a identity.pub file; this user can log to the install
+# clients in as root without a password; only useful with FAI_FLAGS="sshd"
+#SSH_IDENTITY=/home/admin/.ssh/identity.pub
+
+# directory of hooks to be sourced at the end of make-fai-nfsroot,
+# i.e they have to be shell scripts.
+#NFSROOT_HOOKS=/etc/fai/nfsroot-hooks/
+
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# following lines should be read only for most of you
+
+FAI_DEBOOTSTRAP_OPTS="--exclude=info"

Added: test-suite/scenarios/configs/sst01/menu.lst
===================================================================
--- test-suite/scenarios/configs/sst01/menu.lst	                        (rev 0)
+++ test-suite/scenarios/configs/sst01/menu.lst	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,44 @@
+# grub menu.lst for fai-cd
+
+# Boot automatically after some secs.
+timeout 30
+
+color light-gray/black light-gray/red
+default 6
+
+title |
+root (cd)
+title +------------------------------------------------------+
+root (cd)
+title |    FAI-CD        (c) Thomas Lange, lange at debian.org  |
+root (cd)
+title | _VERSIONSTRING_ |
+root (cd)
+title +------------------------------------------------------+
+root (cd)
+title |
+root (cd)
+title |
+
+title boot from local disk
+rootnoverify (hd0)
+chainloader +1
+
+title Fully Automatic Installation - demohost (pw: installme)
+password installme
+kernel /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=demohost
+initrd /boot/initrd.img
+
+title Fully Automatic Installation with GNOME (pw: installme)
+password installme
+kernel /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=gnomehost
+initrd /boot/initrd.img
+
+title Fully Automatic Installation - faiserver (pw: installme)
+password installme
+kernel /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=faiserver
+initrd /boot/initrd.img
+
+title FAI rescue system, no installation
+kernel /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=sysinfo hostname=demohost
+initrd /boot/initrd.img

Added: test-suite/scenarios/configs/sst02/NFSROOT
===================================================================
--- test-suite/scenarios/configs/sst02/NFSROOT	                        (rev 0)
+++ test-suite/scenarios/configs/sst02/NFSROOT	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,42 @@
+# package list for creating the NFSROOT
+
+PACKAGES aptitude
+nfs-common fai-nfsroot module-init-tools ssh rdate lshw portmap
+rsync lftp less dump reiserfsprogs e2fsprogs usbutils
+hwinfo psmisc pciutils hdparm smartmontools parted mdadm lvm2
+dnsutils ntpdate dosfstools jove xfsprogs xfsdump
+procinfo dialog discover
+console-tools console-common
+iproute udev subversion liblinux-lvm-perl
+
+# needed for the simple examples
+cfengine2 libapt-pkg-perl
+
+# you should not edit the lines below
+# architecture dependend list of packages that are installed
+
+PACKAGES aptitude I386
+grub lilo read-edid
+linux-image-486
+
+# packages for lenny:
+# linux-image-486 aufs-modules-2.6-486
+
+PACKAGES aptitude AMD64
+grub lilo
+linux-image-2.6-amd64
+# packages for lenny:
+# linux-image-2.6-amd64 aufs-modules-2.6-amd64
+
+PACKAGES aptitude IA64
+elilo gnu-efi efibootmgr
+
+PACKAGES aptitude SPARC
+silo sparc-utils
+
+PACKAGES aptitude ALPHA
+aboot
+
+PACKAGES aptitude POWERPC
+linux-image-2.6-powerpc
+yaboot

Added: test-suite/scenarios/configs/sst02/apt/sources.list
===================================================================
--- test-suite/scenarios/configs/sst02/apt/sources.list	                        (rev 0)
+++ test-suite/scenarios/configs/sst02/apt/sources.list	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,8 @@
+# These lines should work for many sites
+# A more comprehensive example is at /usr/share/doc/fai-doc/examples/etc
+
+deb http://faiserver/debian squeeze main contrib non-free
+deb http://faiserver/debian-security squeeze/updates main contrib non-free
+
+# repository that may contain newer fai packages for squeeze
+deb http://faiserver/download squeeze koeln

Added: test-suite/scenarios/configs/sst02/fai.conf
===================================================================
--- test-suite/scenarios/configs/sst02/fai.conf	                        (rev 0)
+++ test-suite/scenarios/configs/sst02/fai.conf	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,37 @@
+# $Id$
+
+# /etc/fai/fai.conf -- configuration for FAI (Fully Automatic Installation)
+
+# how to access the fai config space
+# If undefined here, make-fai-nfsroot/fai-setup will use default value
+# nfs://<install server>/$FAI_CONFIGDIR
+# supported URL-types: nfs, file, cvs, cvs+ssh, svn+file, svn+http,
+# git, git+http, hg+http
+FAI_CONFIG_SRC=svn://anonscm.debian.org/fai/test-suite/scenarios/setup-storage-tests
+
+# LOGUSER: an account on the install server which saves all log-files
+# and which can change the kernel that is booted via network.
+# Configure .rhosts for this account and PAM, so that root can log in
+# from all install clients without password. This account should have
+# write permissions for /srv/tftp/fai. For example, you can use write
+# permissions for the group linuxadm. chgrp linuxadm /srv/tftp/fai;chmod
+# g+w /srv/tftp/fai. If the variable is undefined, this feature is disabled.
+# Define it, to enable it, eg. LOGUSER=fai
+#LOGUSER=fai
+
+# set protocol type for saving logs. Values: ssh, rsh, ftp
+FAI_LOGPROTO=ssh
+
+# Access to Debian mirror via NFS mounted directory
+# If FAI_DEBMIRROR is defined, install clients mount it to $MNTPOINT
+#FAI_DEBMIRROR=yournfs debianmirror:/path/to/debianmirror
+
+
+# The following variables are read only for almost every user.
+# Do not change them unless you know what you are doing!
+
+# mount point where the mirror will be mounted
+MNTPOINT=/media/mirror
+
+# the local configuration directory on the install client
+FAI=/var/lib/fai/config

Added: test-suite/scenarios/configs/sst02/grub.cfg
===================================================================
--- test-suite/scenarios/configs/sst02/grub.cfg	                        (rev 0)
+++ test-suite/scenarios/configs/sst02/grub.cfg	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,77 @@
+## grub2 configuration
+set default=4
+set timeout=20
+
+if loadfont /boot/grub/ascii.pf2 ; then
+   insmod png
+   set gfxmode=640x480
+   insmod gfxterm
+   insmod vbe
+   terminal_output gfxterm
+fi
+
+if background_image /boot/grub/fai.png ; then
+  set color_normal=black/black
+  set color_highlight=red/black
+  set menu_color_normal=black/black
+  set menu_color_highlight=black/yellow
+else
+  set menu_color_normal=white/black
+  set menu_color_highlight=black/yellow
+fi
+
+# make sure we can access partitions
+insmod part_msdos
+insmod part_gpt
+
+if [ ${iso_path} ] ; then
+    set loopback="findiso=${iso_path}"
+fi
+
+
+menuentry "+------------------------------------------------------+" {
+    set gfxpayload=1024x768
+    linux   /boot/vmlinuz boot=live
+}
+menuentry "|    FAI-CD        (c) Thomas Lange, lange at debian.org  |" {
+    set gfxpayload=1024x768
+    linux   /boot/vmlinuz boot=live
+}
+menuentry "| _VERSIONSTRING_ |" {
+    set gfxpayload=1024x768
+    linux   /boot/vmlinuz boot=live
+}
+menuentry "+------------------------------------------------------+" {
+    set gfxpayload=1024x768
+    linux   /boot/vmlinuz boot=live
+}
+
+menuentry "Fully Automatic Installation - demohost (pw: installme)" {
+    set gfxpayload=1024x768
+    linux   /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=demohost
+    initrd  /boot/initrd.img
+}
+
+menuentry "Fully Automatic Installation with GNOME (pw: installme)" {
+    set gfxpayload=1024x768
+    linux /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=gnomehost
+    initrd /boot/initrd.img
+}
+
+menuentry "Fully Automatic Installation - faiserver (pw: installme)" {
+    set gfxpayload=1024x768
+    linux /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=faiserver
+    initrd /boot/initrd.img
+}
+
+menuentry "FAI rescue system, no installation" {
+    set gfxpayload=1024x768
+    linux /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=sysinfo hostname=demohost
+    initrd /boot/initrd.img
+}
+
+menuentry "Boot OS of first partition on first disk" {
+    set root=(hd0,1)
+    chainloader +1
+}
+

Added: test-suite/scenarios/configs/sst02/live.conf
===================================================================
--- test-suite/scenarios/configs/sst02/live.conf	                        (rev 0)
+++ test-suite/scenarios/configs/sst02/live.conf	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,33 @@
+# /etc/live.conf - configuration file for live-initramfs(7)
+
+export BUILD_SYSTEM="Debian"
+
+export UNIONTYPE="aufs"
+export NOAUTOLOGIN="Yes"
+export NOFASTBOOT="Yes"
+export SELINUX_INIT="No"
+export NOSUDO="Yes"
+export NOUSER="Yes"
+export NOXAUTOCONFIG="Yes"
+export NOFSTAB="Yes"
+export NOHOSTS="Yes"
+
+export NOACCESSIBILITY="Yes"
+export NOAPPARMOR="Yes"
+export NOAPTCDROM="Yes"
+export NOCONSOLEKEYBOARD="Yes"
+export NOKPERSONALIZER="Yes"
+export NOKWALLET="Yes"
+export NOLANGUAGESELECTOR="Yes"
+export NOLOCALES="Yes"
+export NONETWORKING="Yes"
+export NOPERSISTENT="Yes"
+export NOPOWERMANAGEMENT="Yes"
+export NOPRESEED="Yes"
+export NOPROGRAMCRASHES="Yes"
+export NORESTRICTEDMANAGER="Yes"
+export NOTIMEZONE="Yes"
+export NOUPDATENOTIFIER="Yes"
+export NOXAUTOLOGIN="Yes"
+export NOXSCREENSAVER="Yes"
+export NOGNOMEPANEL="Yes"

Added: test-suite/scenarios/configs/sst02/make-fai-nfsroot.conf
===================================================================
--- test-suite/scenarios/configs/sst02/make-fai-nfsroot.conf	                        (rev 0)
+++ test-suite/scenarios/configs/sst02/make-fai-nfsroot.conf	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,36 @@
+# these variables are only used by make-fai-nfsroot(8)
+# here you can use also variables defined in fai.conf
+
+# directory on the install server where the nfsroot for FAI is
+# created, approx size: 390MB, also defined in bootptab or dhcp.conf
+NFSROOT=/srv/fai/nfsroot-fai12
+
+# TFTP directory for FAI files
+TFTPROOT=/srv/tftp/fai
+
+# location of the configuration space on the install server
+FAI_CONFIGDIR=/srv/fai/config
+
+# Add a line for mirrorhost and installserver when DNS is not available
+# on the clients. This line(s) will be added to $nfsroot/etc/hosts.
+NFSROOT_ETC_HOSTS="192.168.2.250 faiserver"
+
+# Parameter for debootstrap: "<suite> <mirror>"
+FAI_DEBOOTSTRAP="squeeze http://faiserver/debian"
+
+# the encrypted (with md5 or crypt) root password on all install clients during
+# installation process; used when log in via ssh; default pw is: fai
+FAI_ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
+
+# location of a identity.pub file; this user can log to the install
+# clients in as root without a password; only useful with FAI_FLAGS="sshd"
+#SSH_IDENTITY=/home/admin/.ssh/identity.pub
+
+# directory of hooks to be sourced at the end of make-fai-nfsroot,
+# i.e they have to be shell scripts.
+#NFSROOT_HOOKS=/etc/fai/nfsroot-hooks/
+
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# following lines should be read only for most of you
+
+FAI_DEBOOTSTRAP_OPTS="--exclude=info"

Added: test-suite/scenarios/configs/sst02/menu.lst
===================================================================
--- test-suite/scenarios/configs/sst02/menu.lst	                        (rev 0)
+++ test-suite/scenarios/configs/sst02/menu.lst	2011-10-22 13:56:41 UTC (rev 6719)
@@ -0,0 +1,44 @@
+# grub menu.lst for fai-cd
+
+# Boot automatically after some secs.
+timeout 30
+
+color light-gray/black light-gray/red
+default 6
+
+title |
+root (cd)
+title +------------------------------------------------------+
+root (cd)
+title |    FAI-CD        (c) Thomas Lange, lange at debian.org  |
+root (cd)
+title | _VERSIONSTRING_ |
+root (cd)
+title +------------------------------------------------------+
+root (cd)
+title |
+root (cd)
+title |
+
+title boot from local disk
+rootnoverify (hd0)
+chainloader +1
+
+title Fully Automatic Installation - demohost (pw: installme)
+password installme
+kernel /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=demohost
+initrd /boot/initrd.img
+
+title Fully Automatic Installation with GNOME (pw: installme)
+password installme
+kernel /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=gnomehost
+initrd /boot/initrd.img
+
+title Fully Automatic Installation - faiserver (pw: installme)
+password installme
+kernel /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=faiserver
+initrd /boot/initrd.img
+
+title FAI rescue system, no installation
+kernel /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=sysinfo hostname=demohost
+initrd /boot/initrd.img

Deleted: test-suite/scenarios/tests.txt
===================================================================
--- test-suite/scenarios/tests.txt	2011-10-22 13:47:35 UTC (rev 6718)
+++ test-suite/scenarios/tests.txt	2011-10-22 13:56:41 UTC (rev 6719)
@@ -1,3 +0,0 @@
-svn://svn.debian.org/svn/fai/trunk/examples/simple atom01
-svn://svn.debian.org/svn/fai/test-suite/scenarios/setup-storage-tests sst01
-svn://svn.debian.org/svn/fai/test-suite/scenarios/setup-storage-tests sst02




More information about the Fai-commit mailing list