Variables: Difference between revisions

From FAIWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
The following Variables do exist in FAI (example values included):
The following Variables do exist in FAI (example values included):
type: int = internal use only; CS used in config space (often defined
by *.var)


{|border=1
{|border=1
!name!!internal!!example value!!created by!!used by !!comments
!name!!type!!example value!!created by!!used by !!comments
|-
|-
|BOOT_IMAGE || int ||vmlinux-install || || || may be unset
|BOOT_IMAGE || int ||vmlinux-install || || || may be unset
Line 76: Line 79:
|-
|-
|NETWORK||||192.168.0.0||||||
|NETWORK||||192.168.0.0||||||
|-
|NFSROOT||||/srv/fai/nfsroot/||fai.conf || almost everywhere ||
|-
|-
|PATH||||/usr/local/sbin:/usr/local/bin:||||||
|PATH||||/usr/local/sbin:/usr/local/bin:||||||
Line 81: Line 86:
|ROOTCMD||||'chroot /tmp/target'||||almost every script||
|ROOTCMD||||'chroot /tmp/target'||||almost every script||
|-
|-
|ROOT_PARTITION||||/dev/sda1||||||
|ROOT_PARTITION||||/dev/sda1||setup_harddisks ||LILO/20-create-liloconf||
|-
|SERVERINTERFACE||||eth0||||||
|-
|UTC||||yes||||||
|-
|addpackages|||| || || ||removed in ???|
|-
|HOST|||| demohost || || || set host name|
|-
|-
|backup||||true||||||
|SERVERINTERFACE||||eth0|| fai.conf|| ||only needed when isntall server has multiple interfaces
|-
|-
|bserver||||watchtower||||||
|UTC||CS||yes||class/*.var || ||
|-
|-
|cfclasses||||DEFAULT.AMD64.LINUX.LAST||||||
|HOST|||| demohost || || || can redefine host name
|-
|-
|classes||||DEFAULT AMD64 LINUX LAST||||||
|cfclasses||||DEFAULT.AMD64.LINUX.LAST||||cfagent scripts||  
|-
|-
|console||||tty0||||||
|classes||||DEFAULT AMD64 LINUX LAST||||almost every script||
|-
|-
|createvt||||1||||||
|createvt||||1||FAI_FLAGS||||
|-
|-
|device_size||||'sda 71687372'||||||
|device_size||||'sda 71687372'||||set_disk_info()|| all disks and their sizes; may become local variable
|-
|-
|disklist||||sda||||||
|disklist||||sda||set_disk_info() ||setup_harddisks, fai-mount-disk||
|-
|-
|diskvar||||/tmp/fai/disk_var.sh||||||
|diskvar||||/tmp/fai/disk_var.sh|||||| contains $BOOT_PARTITION, $ROOT_PARTITION, $BOOT_DEVICE, $SWAPLIST
|-
|-
|installserver||||0|||only used for building FAI_LOCATION||unset very early||can be removed
|installserver||||0|||only used for building FAI_LOCATION||unset very early||can be removed
|-
|-
|faimond||||0||||||
|faimond||int ||0|| || ||determines if faimond is running
|-
|files||||/fai/files||||||
|-
|force||||true||||||
|-
|-
|fstab||int||fstab||was used for solaris, fstab -> vfstab||can be removed
|fstab||int||fstab||was used for solaris, fstab -> vfstab||can be removed
|-
|-
|ip||dhcp||||||||
|ip||int||dhcp||||/get-boot-info||
|-
|liloappend|||| || || ||
|-
|-
|lpipe||||/tmp/fai/logfifo||||||
|liloappend||CS|| || class/*.var || 20-create-liloconf ||
|-
|-
|mirrorhost||||192.168.0.8||||||
|lpipe||int ||/tmp/fai/logfifo|||||| try to remove the ugly hack using it
|-
|-
|moduleslist||||psmouse||class/*.var ||scripts/FAIBASE/10-misc||
|mirrorhost||||192.168.0.8||fai.conf ||make-fai-nfsroot.conf, $FAI_DEBOOTSTRAP ||
|-
|-
|monserver|||| ||||||
|moduleslist||CS||psmouse||class/*.var ||scripts/FAIBASE/10-misc||
|-
|-
|netdevices||||eth0||||||
|monserver|| ||kueppers ||task_confdir ||sndmon() || default: monserver=$SERVER, may be removed, but must be set very early
|-
|-
|netdevices_all||||eth0 eth1 ath0||||||
|netdevices||int ||eth0|| get-boot-info||get-boot-info, task_sysinfo||
|-
|-
|netdevices_up||||eth0||||||
|netdevices_all||int ||eth0 eth1 || get-boot-info||get-boot-info, task_sysinfo||
|-
|-
|nfsroot||||192.168.0.12:/usr/lib/fai/nfsroot-amd64/||||||
|netdevices_up||||eth0|| get-boot-info||get-boot-info, task_sysinfo||
|-
|-
|noexec||||off|| || ||
|nfsroot||int||/srv/fai/nfsroot/||fai-chboot via kernel append parameter||kernel, fai-chboot ||may contain server's IP address
|-
|-
|rcslog||int||$LOGDIR/fai.log||||||
|rcslog||int||$LOGDIR/fai.log||||||
|-
|-
|renewclass||||1|| || ||
|renewclass|| int||1|| || task_defclass()|| on softupdate recalculate the list of classes
|-
|-
|romountopt||int||'-o async,noatime,nolock,ro,actimeo 1800'|| || ||
|romountopt||int||'-o async,noatime,nolock,ro|| || ||
|-
|-
|rundir||||/var/run/fai|| || ||
|rundir||int||/var/run/fai|| fai ||get_fai_dir(), fai ||
|-
|-
|sndhostname|| || || || ||
|sndhostname|| || || || || XXXXXX
|-
|-
|sshd|| ||1|| define_fai_flags() || ||
|sshd|| ||1|| define_fai_flags() || ||
|-
|-
|stamp||int ||/var/run/fai/FAI_INSTALLATION_IN_PROGRESS|| || ||
|stamp||int ||.../FAI_INSTALLATION_IN_PROGRESS|| || ||
|-
|-
|target||||/tmp/target|| || || same as $FAI_ROOT
|target||||/tmp/target|| || || same as $FAI_ROOT
Line 159: Line 150:
|terror||int||0|| ||every task can set it ||
|terror||int||0|| ||every task can set it ||
|-
|-
|time_zone||||Europe/Berlin|| class/*.var || ||
|time_zone||CS||Europe/Berlin|| class/*.var || ||
|}
|}

Revision as of 16:46, 25 July 2006

The following Variables do exist in FAI (example values included):

type: int = internal use only; CS used in config space (often defined by *.var)

name type example value created by used by comments
BOOT_IMAGE int vmlinux-install may be unset
BOOT_PARTITION /dev/sda1 setup_harddisks grub/menu.lst/postinst
BROADCAST 192.168.0.127 get-boot-info scripts/FAIBASE/30-interface
COLOR_FAI_LOGO int 1 prcopyleft() Does not work for installation on x86.
DEBIAN_FRONTEND int noninteractive dpkg -i
DNSDOMAIN workgroup.de task_setup() just used because cfengine can't use DOMAIN
DNSSRVS 192.168.1.16 dhclient-perl create_resolv_conf
DNSSRVS_1 192.168.1.16 first element of DNSSRV
DOMAIN workgroup.de task_setup() task_prepareapt()
DO_INIT_TASKS int 1 fai, task_confdir(), prcopyleft() 1 if

doing net installation

FAI /fai almost every function
FAI_ACTION install,sysinfo,softupdate fai-chboot via kernel command line save_log_local() save_log_remote_shell() save_log_remote() get_bootp_info() task_action(), fai-savelog-ftp, updatebase
FAI_CONSOLEFONT class/*.var
FAI_FLAGS 'createvt sshd' kernel command line, fai-chboot define_fai_flags()
FAI_KEYMAP de class/*.var
FAI_LOCATION faiserver:/srv/fai/config get_bootp_info() get_fai_dir() get_fai_cvs()
FAI_LOGPROTO fai.conf save_log_remote() can be removed from fai.conf, should be defined in class/*.var
FAI_REMOTECP scp fai.conf fai-setup, fai-savelog
FAI_REMOTESH ssh fai.conf fai-setup, fai-savelog, task_chboot()
FAI_ROOT /tmp/target almost every script
FAI_RUNDATE int 20060123_163824 task_setup() fai-savelog
FAI_VERSION int FAI 2.10.5 fai, prcopyleft()
GATEWAYS 192.168.0.1
GATEWAYS_1 192.168.0.1
HOSTNAME 192.168.0.14 very often
HOSTTYPE x86_64 prcopyleft
IPADDR 192.168.0.14
LOGDIR /tmp/fai very often
LOGPASSWD fai.conf fai-savelog-ftp maybe removed from fai.conf
LOGREMOTEDIR upload fai.conf fai-savelog-ftp maybe removed from fai.conf
LOGSERVER fai.conf fai-savelog, fai-savelog-ftp default: LOGSERVER=$SERVER, maybe removed from fai.conf
LOGUSER fai.conf fai-setup, fai-savelog, fai-savelog-ftp,task_chboot()
MNTPOINT /mnt2 /make-fai-nfsroot, fai-mirror, task_mirror()
NETMASK 255.255.255.128
NETWORK 192.168.0.0
NFSROOT /srv/fai/nfsroot/ fai.conf almost everywhere
PATH /usr/local/sbin:/usr/local/bin:
ROOTCMD 'chroot /tmp/target' almost every script
ROOT_PARTITION /dev/sda1 setup_harddisks LILO/20-create-liloconf
SERVERINTERFACE eth0 fai.conf only needed when isntall server has multiple interfaces
UTC CS yes class/*.var
HOST demohost can redefine host name
cfclasses DEFAULT.AMD64.LINUX.LAST cfagent scripts
classes DEFAULT AMD64 LINUX LAST almost every script
createvt 1 FAI_FLAGS
device_size 'sda 71687372' set_disk_info() all disks and their sizes; may become local variable
disklist sda set_disk_info() setup_harddisks, fai-mount-disk
diskvar /tmp/fai/disk_var.sh contains $BOOT_PARTITION, $ROOT_PARTITION, $BOOT_DEVICE, $SWAPLIST
installserver 0 only used for building FAI_LOCATION unset very early can be removed
faimond int 0 determines if faimond is running
fstab int fstab was used for solaris, fstab -> vfstab can be removed
ip int dhcp /get-boot-info
liloappend CS class/*.var 20-create-liloconf
lpipe int /tmp/fai/logfifo try to remove the ugly hack using it
mirrorhost 192.168.0.8 fai.conf make-fai-nfsroot.conf, $FAI_DEBOOTSTRAP
moduleslist CS psmouse class/*.var scripts/FAIBASE/10-misc
monserver kueppers task_confdir sndmon() default: monserver=$SERVER, may be removed, but must be set very early
netdevices int eth0 get-boot-info get-boot-info, task_sysinfo
netdevices_all int eth0 eth1 get-boot-info get-boot-info, task_sysinfo
netdevices_up eth0 get-boot-info get-boot-info, task_sysinfo
nfsroot int /srv/fai/nfsroot/ fai-chboot via kernel append parameter kernel, fai-chboot may contain server's IP address
rcslog int $LOGDIR/fai.log
renewclass int 1 task_defclass() on softupdate recalculate the list of classes
romountopt int '-o async,noatime,nolock,ro
rundir int /var/run/fai fai get_fai_dir(), fai
sndhostname XXXXXX
sshd 1 define_fai_flags()
stamp int .../FAI_INSTALLATION_IN_PROGRESS
target /tmp/target same as $FAI_ROOT
terror int 0 every task can set it
time_zone CS Europe/Berlin class/*.var