[Fai-commit] r3198 - in trunk: debian examples/simple/class examples/simple/debconf examples/simple/disk_config examples/simple/files/etc examples/simple/files/etc/apache2 examples/simple/files/etc/apache2/conf.d examples/simple/files/etc/default examples/simple/files/etc/default/tftpd-hpa examples/simple/files/etc/dhcp3 examples/simple/files/etc/dhcp3/dhcpd.conf examples/simple/files/etc/fai examples/simple/files/etc/fai/fai.conf examples/simple/files/etc/fai/make-fai-nfsroot.conf examples/simple/files/etc/fai/sources.list examples/simple/scripts examples/simple/scripts/FAISERVER

fai-repository at svn.debian.org fai-repository at svn.debian.org
Thu Jan 5 19:38:32 UTC 2006


Author: lange
Date: 2006-01-05 19:38:31 +0000 (Thu, 05 Jan 2006)
New Revision: 3198

Added:
   trunk/examples/simple/debconf/FAISERVER
   trunk/examples/simple/disk_config/FAISERVER
   trunk/examples/simple/files/etc/apache2/
   trunk/examples/simple/files/etc/apache2/conf.d/
   trunk/examples/simple/files/etc/apache2/conf.d/FAISERVER
   trunk/examples/simple/files/etc/default/
   trunk/examples/simple/files/etc/default/tftpd-hpa/
   trunk/examples/simple/files/etc/default/tftpd-hpa/FAISERVER
   trunk/examples/simple/files/etc/dhcp3/
   trunk/examples/simple/files/etc/dhcp3/dhcpd.conf/
   trunk/examples/simple/files/etc/dhcp3/dhcpd.conf/FAISERVER
   trunk/examples/simple/files/etc/fai/
   trunk/examples/simple/files/etc/fai/fai.conf/
   trunk/examples/simple/files/etc/fai/fai.conf/FAISERVER
   trunk/examples/simple/files/etc/fai/make-fai-nfsroot.conf/
   trunk/examples/simple/files/etc/fai/make-fai-nfsroot.conf/FAISERVER
   trunk/examples/simple/files/etc/fai/sources.list/
   trunk/examples/simple/files/etc/fai/sources.list/FAISERVER
   trunk/examples/simple/scripts/FAISERVER/
   trunk/examples/simple/scripts/FAISERVER/10-conffiles
   trunk/examples/simple/scripts/FAISERVER/20-copy-mirror
Modified:
   trunk/debian/changelog
   trunk/examples/simple/class/50-host-classes
Log:
add class FAISERVER, class is not yet ready-to-go


Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2006-01-05 19:31:52 UTC (rev 3197)
+++ trunk/debian/changelog	2006-01-05 19:38:31 UTC (rev 3198)
@@ -6,9 +6,11 @@
   * fai.8: fix typo (closes: #343642)
   * doc/classes_description.txt: remove all unused classes, update
     description (closes: #322026)
+  * add script AMD64/99-discover-bug
+  * add class FAISERVER
+  
+ -- Thomas Lange <lange at debian.org>  Thu,  5 Jan 2006 20:37:32 +0100
 
- -- Thomas Lange <lange at debian.org>  Thu,  5 Jan 2006 11:34:15 +0100
-
 fai (2.9) unstable; urgency=low
 
   * splitting binary package fai into fai-server, fai-client, fai-doc and

Modified: trunk/examples/simple/class/50-host-classes
===================================================================
--- trunk/examples/simple/class/50-host-classes	2006-01-05 19:31:52 UTC (rev 3197)
+++ trunk/examples/simple/class/50-host-classes	2006-01-05 19:38:31 UTC (rev 3198)
@@ -4,8 +4,10 @@
 
 # use a list of classes for our demo machine
 case $HOSTNAME in
+    faiserver)
+	echo "FAIBASE DEMO FAISERVER" ;;
     demohost)
-	echo "FAIBASE DHCPC DEMO FAISERVER" ;;
+	echo "FAIBASE DHCPC DEMO" ;;
     gnomehost)
 	echo "FAIBASE DHCPC DEMO XFREE GNOME";;
     *)

Added: trunk/examples/simple/debconf/FAISERVER
===================================================================
--- trunk/examples/simple/debconf/FAISERVER	2006-01-05 19:31:52 UTC (rev 3197)
+++ trunk/examples/simple/debconf/FAISERVER	2006-01-05 19:38:31 UTC (rev 3198)
@@ -0,0 +1,2 @@
+# Should the server be started by inetd?
+tftpd-hpa       tftpd-hpa/use_inetd     boolean false

Added: trunk/examples/simple/disk_config/FAISERVER
===================================================================
--- trunk/examples/simple/disk_config/FAISERVER	2006-01-05 19:31:52 UTC (rev 3197)
+++ trunk/examples/simple/disk_config/FAISERVER	2006-01-05 19:38:31 UTC (rev 3198)
@@ -0,0 +1,12 @@
+# generic disk configuration for a fai isntall server
+#
+# <type> <mountpoint> <size in mb> [mount options]     [;extra options]
+
+disk_config disk1
+primary  /             70-300      rw,errors=remount-ro ; -c -j ext3
+logical  swap          40-500      rw                   
+logical  /var          700-1000     rw                   ; -m 5  -j ext3
+logical  /tmp          50-1000     rw                   ; -m 0 -j ext3
+logical  /usr          500-4000    rw                   ; -j ext3
+logical  /home         50-         rw,nosuid            ; -m 1 -j ext3
+# logical /home        preserve9   rw,nosuid            ; -m 1 -j ext3

Added: trunk/examples/simple/files/etc/apache2/conf.d/FAISERVER
===================================================================
--- trunk/examples/simple/files/etc/apache2/conf.d/FAISERVER	2006-01-05 19:31:52 UTC (rev 3197)
+++ trunk/examples/simple/files/etc/apache2/conf.d/FAISERVER	2006-01-05 19:38:31 UTC (rev 3198)
@@ -0,0 +1,24 @@
+<Directory "/var/www/ganglia">
+    AllowOverride None
+    Options None
+    Order deny,allow
+    Deny from all
+    Allow from 192.168.1
+</Directory>
+
+<Directory "/var/www/debian">
+    AllowOverride None
+    Options None
+    Order deny,allow
+#    Deny from all
+    Allow from all
+</Directory>
+
+<Directory "/var/www/debian-security">
+    AllowOverride None
+    Options None
+    Order deny,allow
+#    Deny from all
+    Allow from all
+</Directory>
+

Added: trunk/examples/simple/files/etc/default/tftpd-hpa/FAISERVER
===================================================================
--- trunk/examples/simple/files/etc/default/tftpd-hpa/FAISERVER	2006-01-05 19:31:52 UTC (rev 3197)
+++ trunk/examples/simple/files/etc/default/tftpd-hpa/FAISERVER	2006-01-05 19:38:31 UTC (rev 3198)
@@ -0,0 +1,3 @@
+#Defaults for tftpd-hpa
+RUN_DAEMON="yes"
+OPTIONS="-l -s /boot/fai"

Added: trunk/examples/simple/files/etc/dhcp3/dhcpd.conf/FAISERVER
===================================================================
--- trunk/examples/simple/files/etc/dhcp3/dhcpd.conf/FAISERVER	2006-01-05 19:31:52 UTC (rev 3197)
+++ trunk/examples/simple/files/etc/dhcp3/dhcpd.conf/FAISERVER	2006-01-05 19:38:31 UTC (rev 3198)
@@ -0,0 +1,53 @@
+# dhcpd.conf for a fai install server
+# replace faiserver with the name of your install server
+
+# deny unknown-clients;
+option dhcp-max-message-size 2048; 
+use-host-decl-names on;
+#always-reply-rfc1048 on;
+
+filename "pxelinux.0";
+
+# the server from which to load the initial boot file if different
+# from server-name (if the DHCP server is not also the TFTP server)
+#next-server faiserver;
+
+subnet 192.168.1.0 netmask 255.255.255.0 {
+   range 192.168.1.1 192.168.1.250;
+   option routers 192.168.1.250;
+   option domain-name "fai";
+   option domain-name-servers 192.168.1.250;
+   option time-servers faiserver;
+   option ntp-servers faiserver;
+   server-name "faiserver";
+}
+
+# generate more lines with:
+
+# perl -e 'for (1..25) {printf "host atom%02s {hardware ethernet XXX:$_;fixed-address atom%02s;}\n",$_,$_;}'
+
+host atom01 {hardware ethernet 0:1:2:3:4:5:1;fixed-address atom01;}
+host atom02 {hardware ethernet 0:1:2:3:4:5:2;fixed-address atom02;}
+host atom03 {hardware ethernet 0:1:2:3:4:5:3;fixed-address atom03;}
+host atom04 {hardware ethernet 0:1:2:3:4:5:4;fixed-address atom04;}
+host atom05 {hardware ethernet 0:1:2:3:4:5:5;fixed-address atom05;}
+host atom06 {hardware ethernet 0:1:2:3:4:5:6;fixed-address atom06;}
+host atom07 {hardware ethernet 0:1:2:3:4:5:7;fixed-address atom07;}
+host atom08 {hardware ethernet 0:1:2:3:4:5:8;fixed-address atom08;}
+host atom09 {hardware ethernet 0:1:2:3:4:5:9;fixed-address atom09;}
+host atom10 {hardware ethernet 0:1:2:3:4:5:10;fixed-address atom10;}
+host atom11 {hardware ethernet 0:1:2:3:4:5:11;fixed-address atom11;}
+host atom12 {hardware ethernet 0:1:2:3:4:5:12;fixed-address atom12;}
+host atom13 {hardware ethernet 0:1:2:3:4:5:13;fixed-address atom13;}
+host atom14 {hardware ethernet 0:1:2:3:4:5:14;fixed-address atom14;}
+host atom15 {hardware ethernet 0:1:2:3:4:5:15;fixed-address atom15;}
+host atom16 {hardware ethernet 0:1:2:3:4:5:16;fixed-address atom16;}
+host atom17 {hardware ethernet 0:1:2:3:4:5:17;fixed-address atom17;}
+host atom18 {hardware ethernet 0:1:2:3:4:5:18;fixed-address atom18;}
+host atom19 {hardware ethernet 0:1:2:3:4:5:19;fixed-address atom19;}
+host atom20 {hardware ethernet 0:1:2:3:4:5:20;fixed-address atom20;}
+host atom21 {hardware ethernet 0:1:2:3:4:5:21;fixed-address atom21;}
+host atom22 {hardware ethernet 0:1:2:3:4:5:22;fixed-address atom22;}
+host atom23 {hardware ethernet 0:1:2:3:4:5:23;fixed-address atom23;}
+host atom24 {hardware ethernet 0:1:2:3:4:5:24;fixed-address atom24;}
+host atom25 {hardware ethernet 0:1:2:3:4:5:25;fixed-address atom25;}

Added: trunk/examples/simple/files/etc/fai/fai.conf/FAISERVER
===================================================================
--- trunk/examples/simple/files/etc/fai/fai.conf/FAISERVER	2006-01-05 19:31:52 UTC (rev 3197)
+++ trunk/examples/simple/files/etc/fai/fai.conf/FAISERVER	2006-01-05 19:38:31 UTC (rev 3198)
@@ -0,0 +1,64 @@
+# $Id: fai.conf 3096 2005-11-23 22:49:54Z lange $
+
+# /etc/fai/fai.conf -- configuration for FAI (Fully Automatic Installation)
+
+# installserver must be the name seen by the install clients
+installserver=faiserver
+# the name of the Debian mirror, this is also hardcoded in /etc/fai/sources.list
+mirrorhost=faiserver
+
+# Don't use the variable FAI_SOURCES_LIST any more.
+# Instead use /etc/fai/sources.list 
+
+# Access to Debian mirror via NFS mounted directory
+# If FAI_DEBMIRROR is defined, install clients mount it to $MNTPOINT
+#FAI_DEBMIRROR=$mirrorhost:/files/scratch/debmirror
+
+# if your install server has multiple ethernet device, use this one to
+# determine its hostname. Default eth0. Set to the interface to which
+# the Beowulf clients are connected.
+SERVERINTERFACE=eth0
+
+# 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 /boot/fai. For example, you can use write
+# permissions for the group linuxadm. chgrp linuxadm /boot/fai;chmod
+# g+w /boot/fai. If the variable is undefined, this feature is disabled.
+# Define it, to enable it, eg. LOGUSER=fai
+LOGUSER=
+# use ssh or rsh for copying log files to user fai and for logging in
+# from install clients to install server
+FAI_REMOTESH=rsh
+FAI_REMOTECP=rcp
+
+# set protocol type for saving logs, default is rcp/scp. Set to ftp if desired.
+FAI_LOGPROTO=
+# Name of log-server. If undefined, the install server will be used. 
+LOGSERVER=
+# writable directory on remote server, when using FTP protocol
+LOGREMOTEDIR="upload"
+# password for login to log server, when using FTP protocol
+LOGPASSWD=
+
+# the configuration space on the install server
+FAI_CONFIGDIR=/usr/local/share/fai
+# the location of the config space, as seen by the install client
+# it can also be overwritten with T170 via BOOTP 
+FAI_LOCATION=$installserver:$FAI_CONFIGDIR
+
+# the following variables are read only for most users
+
+# mount point where the mirror will be mounted
+MNTPOINT=/mnt2
+
+# directory on the install server where the nfsroot for FAI is
+# created, approx size: 160MB, also defined in bootptab or dhcp.conf
+NFSROOT=/usr/lib/fai/nfsroot
+
+# the local configuration directory on the install client
+FAI=/fai
+
+# the type of operating system (linux, sunos)
+OS_TYPE=`uname -s |  tr A-Z a-z`

Added: trunk/examples/simple/files/etc/fai/make-fai-nfsroot.conf/FAISERVER
===================================================================
--- trunk/examples/simple/files/etc/fai/make-fai-nfsroot.conf/FAISERVER	2006-01-05 19:31:52 UTC (rev 3197)
+++ trunk/examples/simple/files/etc/fai/make-fai-nfsroot.conf/FAISERVER	2006-01-05 19:38:31 UTC (rev 3198)
@@ -0,0 +1,49 @@
+# these variables are only used by make-fai-nfsroot(8)
+# here you can use also variables defined in fai.conf (like $mirrorhost)
+
+# 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.1.250 $mirrorhost"
+
+FAI_DEBOOTSTRAP="sarge http://$mirrorhost/debian"
+#FAI_DEBOOTSTRAP="sarge file:/files/scratch/debian"
+
+# your extra packages which will be installed into the nfsroot, space separated
+NFSROOT_PACKAGES="cfengine expect"
+
+# this local repository holds your local packages that can be installed to
+# the install clients. Don't forget to create the index file Packages.gz!
+#FAI_LOCAL_REPOSITORY="deb file:/fai/files packages/"
+
+# 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'
+
+# this kernel package will be used when booting the install clients
+#KERNELPACKAGE=/usr/lib/fai/kernel/kernel-image-2.6.14-fai-kernels_1_i386.deb
+KERNELPACKAGE=/usr/lib/fai/kernel/kernel-image-2.6.8-fai_1_i386.deb
+
+# 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
+
+# which of DHCP and/or BOOTP should the server create setups for.
+# Default are to create setups for both
+FAI_BOOT="dhcp bootp"
+
+# export $NFSROOT to this netgroup or this range of IP addresses
+# (eg. FAICLIENTS="192.168.1.0/24") 
+FAICLIENTS=`hostname -i | sed -e 's/\(.*\)\.[0-9]*/\1.0\/24/' | tr -d ' '`
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# following lines should be read only for most of you
+
+FAI_DEBOOTSTRAP_OPTS="--exclude=pcmcia-cs,ppp,pppconfig,pppoe,pppoeconf,dhcp-client,exim4,exim4-base,exim4-config,exim4-daemon-light,mailx,at,fdutils,info,modconf,libident,logrotate,exim"
+
+nfssize="250MB"  # size of the nfsroot. Only informational purpose
+
+# FAI needs these packages that are installed into the nfsroot
+packages="fai-nfsroot module-init-tools dhcp3-client ssh file rdate hwinfo portmap
+bootpc rsync wget rsh-client less dump reiserfsprogs usbutils
+psmisc hdparm smartmontools parted mdadm lvm2
+dnsutils ntpdate dosfstools cvs jove xfsprogs xfsdump
+sysutils dialog discover mdetect libnet-perl netcat libapt-pkg-perl"

Added: trunk/examples/simple/files/etc/fai/sources.list/FAISERVER
===================================================================
--- trunk/examples/simple/files/etc/fai/sources.list/FAISERVER	2006-01-05 19:31:52 UTC (rev 3197)
+++ trunk/examples/simple/files/etc/fai/sources.list/FAISERVER	2006-01-05 19:38:31 UTC (rev 3198)
@@ -0,0 +1,2 @@
+deb http://faiserver/debian sarge main
+#deb http://faiserver/debian-security sarge/updates main contrib non-free

Added: trunk/examples/simple/scripts/FAISERVER/10-conffiles
===================================================================
--- trunk/examples/simple/scripts/FAISERVER/10-conffiles	2006-01-05 19:31:52 UTC (rev 3197)
+++ trunk/examples/simple/scripts/FAISERVER/10-conffiles	2006-01-05 19:38:31 UTC (rev 3198)
@@ -0,0 +1,7 @@
+#! /bin/bash
+
+fcopy -v /etc/dhcp3/dhcpd.conf /etc/default/tftpd-hpa # not needed /etc/apache2/conf.d
+fcopy -v /etc/fai/fai.conf /etc/fai/make-fai-nfsroot.conf /etc/fai/sources.list
+
+# create some host entries
+perl -e 'for (1..25) {printf "192.168.1.%s atom%02s\n",$_,$_;}' >> $target/etc/hosts


Property changes on: trunk/examples/simple/scripts/FAISERVER/10-conffiles
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/examples/simple/scripts/FAISERVER/20-copy-mirror
===================================================================
--- trunk/examples/simple/scripts/FAISERVER/20-copy-mirror	2006-01-05 19:31:52 UTC (rev 3197)
+++ trunk/examples/simple/scripts/FAISERVER/20-copy-mirror	2006-01-05 19:38:31 UTC (rev 3198)
@@ -0,0 +1,15 @@
+#! /bin/bash
+
+[ -d /media/mirror ] || exit 0
+
+echo "Copying Debian mirror from CD to local dis. This may take some time."
+mkdir -p $target/var/www/debian
+cp -a /media/mirror/* $target/var/www/debian
+
+echo "deb http://faiserver/debian stable main" > $target/etc/apt/sources.list
+
+# fix mirror, otherwise debootstrap can't work. Curently packages in sarge (fai-*)
+# can not be accessed
+cd $target/var/www/debian/dists
+mv sarge tom
+ln -s stable sarge


Property changes on: trunk/examples/simple/scripts/FAISERVER/20-copy-mirror
___________________________________________________________________
Name: svn:executable
   + *




More information about the Fai-commit mailing list