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):


BASH=/bin/bash
{|border=1
BASH_VERSION='2.05b.0(1)-release'
!name!!example value!!description!!functions using the variable
BOOT_DEVICE=/dev/sda
|-
BOOT_IMAGE=workgroup.opteron
|BASH||/bin/bash||||
BOOT_PARTITION=/dev/sda1
|-
BROADCAST=192.168.0.127
|BASH_VERSION||'2.05b.0(1)-release'||||
 
|-
COLOR_FAI_LOGO=1
|BOOT_DEVICE||/dev/sda||||
Does not work for installation on x86 only for softupdates. 
|-
 
|BOOT_IMAGE||workgroup.opteron||||
CONSOLE=/dev/console
|-
DEBIAN_FRONTEND=noninteractive
|BOOT_PARTITION||/dev/sda1||||
DIRSTACK=()
|-
DNSDOMAIN=workgroup.uni-jena.de
|BROADCAST||192.168.0.127||||
DNSSRVS=192.168.1.16
|-
DNSSRVS_1=192.168.1.16
|COLOR_FAI_LOGO||1||||
DOMAIN=workgroup.uni-jena.de
|-
DO_INIT_TASKS=1
|CONSOLE||/dev/console||||
FAI=/fai
|-
FAI_ACTION=install
|DEBIAN_FRONTEND||noninteractive||||
FAI_CONSOLEFONT=
|-
FAI_FLAGS='createvt sshd'
|DIRSTACK||()||||
FAI_KEYMAP=de
|-
FAI_LOCATION=192.168.0.8:/usr/share/fai
|DNSDOMAIN||workgroup.uni-jena.de||||
FAI_LOGPROTO=
|-
FAI_REMOTECP=scp
|DNSSRVS||192.168.1.16||||
FAI_REMOTESH=ssh
|-
FAI_ROOT=/tmp/target
|DNSSRVS_1||192.168.1.16||||
FAI_RUNDATE=20060123_163824
|-
FAI_VERSION='FAI 2.8.4, 25 May 2005'
|DOMAIN||workgroup.uni-jena.de||||
FUNCNAME=task_defvar
|-
GATEWAYS=192.168.0.1
|DO_INIT_TASKS||1||||
GATEWAYS_1=192.168.0.1
|-
GROUPS=()
|FAI||/fai||||
HOSTNAME=192.168.0.14
|-
HOSTTYPE=x86_64
|FAI_ACTION||install||||
IFS=$' \t\n'
|-
INIT_VERSION=sysvinit-2.86
|FAI_CONSOLEFONT|| ||||
INSTALL=all-install
|-
IPADDR=192.168.0.14
|FAI_FLAGS||'createvt sshd'||||
LOGDIR=/tmp/fai
|-
LOGPASSWD=
|FAI_KEYMAP||de||||
LOGREMOTEDIR=upload
|-
LOGSERVER=
|FAI_LOCATION||192.168.0.8:/usr/share/fai||||
LOGUSER=
|-
MACHTYPE=x86_64-pc-linux-gnu
|FAI_LOGPROTO|| ||||
MNTPOINT=/mnt2
|-
NETMASK=255.255.255.128
|FAI_REMOTECP||scp||||
NETWORK=192.168.0.0
|-
OLDPWD=/
|FAI_REMOTESH||ssh||||
OPTERR=1
|-
OPTIND=1
|FAI_ROOT||/tmp/target||||
OSTYPE=linux-gnu
|-
OS_TYPE=linux
|FAI_RUNDATE||20060123_163824||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/lib/fai:/bin:/sbin:/usr/bin:/usr/sbin:
|-
PIPESTATUS=([0]="0")
|FAI_VERSION||'FAI 2.8.4, 25 May 2005'||||
PREVLEVEL=N
|-
PS4='+ '
|FUNCNAME||task_defvar||||
ROOTCMD='chroot /tmp/target'
|-
ROOT_PARTITION=/dev/sda1
|GATEWAYS||192.168.0.1||||
RUNLEVEL=S
|-
SERVERINTERFACE=eth0
|GATEWAYS_1||192.168.0.1||||
SHELL=/bin/bash
|-
SHLVL=1
|GROUPS||()||||
TEMP=' --'
|-
TERM=linux
|HOSTNAME||192.168.0.14||||
UTC=yes
|-
addpackages=
|HOSTTYPE||x86_64||||
backup=true
|-
bserver=watchtower
|IFS||$' \t\n'||||
cfclasses=DEFAULT.AMD64.LINUX.BOOT.WORKGROUP.CLUSTERMASTER.all-install.SCSI.GRUB.OPTERON.141.LAST
|-
classes=$'DEFAULT\nAMD64\nLINUX\nBOOT\nWORKGROUP\nCLUSTERMASTER\nall-install\nSCSI\nGRUB\nOPTERON\n141\nLAST'
|INIT_VERSION||sysvinit-2.86||||
console=tty0
|-
createvt=1
|INSTALL||all-install||||
device_size='sda 71687372'
|-
disklist=sda
|IPADDR||192.168.0.14||||
diskvar=/tmp/fai/disk_var.sh
|-
faimond=0
|LOGDIR||/tmp/fai||||
files=/fai/files
|-
force=true
|LOGPASSWD|| ||||
fstab=fstab
|-
hdparm=
|LOGREMOTEDIR||upload||||
hserver=watchtower
|-
ip=dhcp
|LOGSERVER|| ||||
kernelimage=kernel-image-2.6.14.0.3_amd64.deb
|-
kernelversion=2.6.14
|LOGUSER|| ||||
liloappend=
|-
lpipe=/tmp/fai/logfifo
|MACHTYPE||x86_64-pc-linux-gnu||||
mirrorhost=192.168.0.8
|-
moduleslist=psmouse
|MNTPOINT||/mnt2||||
moduleslog=/tmp/fai/modules.log
|-
monserver=
|NETMASK||255.255.255.128||||
netdevices=eth0
|-
netdevices_all=$'eth0\neth0\neth1\neth1\neth0\neth0\neth0 eth0 eth1'
|NETWORK||192.168.0.0||||
netdevices_up=eth0
|-
nfsroot=192.168.0.12:/usr/lib/fai/nfsroot-amd64/
|OLDPWD||/||||
noexec=off
|-
printers=lw
|OPTERR||1||||
rcslog=/tmp/fai/fai.log
|-
renewclass=1
|OPTIND||1||||
romountopt='-o async,noatime,nolock,ro,actimeo=1800'
|-
rundir=/var/run/fai
|OSTYPE||linux-gnu||||
sndhostname
|-
sshd=1
|OS_TYPE||linux||||
stamp=/var/run/fai/FAI_INSTALLATION_IN_PROGRESS
|-
target=/tmp/target
|PATH||/usr/local/sbin:/usr/local/bin:/usr/lib/fai:/bin:/sbin:/usr/bin:/usr/sbin:||||
taskname=defvar
|-
terror=0
|PIPESTATUS||([0]||"0")||||
time_zone=Europe/Berlin
|-
|PREVLEVEL||N||||
|-
|PS4||'+ '||||
|-
|ROOTCMD||'chroot /tmp/target'||||
|-
|ROOT_PARTITION||/dev/sda1||||
|-
|RUNLEVEL||S||||
|-
|SERVERINTERFACE||eth0||||
|-
|SHELL||/bin/bash||||
|-
|SHLVL||1||||
|-
|TEMP||' --'||||
|-
|TERM||linux||||
|-
|UTC||yes||||
|-
|addpackages||||||
|-
|backup||true||||
|-
|bserver||watchtower||||
|-
|cfclasses||DEFAULT.AMD64.LINUX.BOOT.WORKGROUP.CLUSTERMASTER.all-install.SCSI.GRUB.OPTERON.141.LAST||||
|-
|classes||$'DEFAULT\nAMD64\nLINUX\nBOOT\nWORKGROUP\nCLUSTERMASTER\nall-install\nSCSI\||||
|-
|nGRUB\nOPTERON\n141\nLAST'||||
|-
|console||tty0||||
|-
|createvt||1||||
|-
|device_size||'sda 71687372'||||
|-
|disklist||sda||||
|-
|diskvar||/tmp/fai/disk_var.sh||||
|-
|faimond||0||||
|-
|files||/fai/files||||
|-
|force||true||||
|-
|fstab||fstab||||
|-
|hdparm|| ||||
|-
|hserver||watchtower||||
|-
|ip||dhcp||||
|-
|kernelimage||kernel-image-2.6.14.0.3_amd64.deb||||
|-
|kernelversion||2.6.14||||
|-
|liloappend||||
|-
|lpipe||/tmp/fai/logfifo||||
|-
|mirrorhost||192.168.0.8||||
|-
|moduleslist||psmouse||||
|-
|moduleslog||/tmp/fai/modules.log||||
|-
|monserver|| ||||
|-
|netdevices||eth0||||
|-
|netdevices_all||$'eth0\neth0\neth1\neth1\neth0\neth0\neth0 eth0 eth1'||||
|-
|netdevices_up||eth0||||
|-
|nfsroot||192.168.0.12:/usr/lib/fai/nfsroot-amd64/||||
|-
|noexec||off||||
|-
|printers||lw||||
|-
|rcslog||/tmp/fai/fai.log||||
|-
|renewclass||1||||
|-
|romountopt||'-o async,noatime,nolock,ro,actimeo||1800'||||
|-
|rundir||/var/run/fai||||
|-
|sndhostname||||
|-
|sshd||1||||
|-
|stamp||/var/run/fai/FAI_INSTALLATION_IN_PROGRESS||||
|-
|target||/tmp/target||||
|-
|taskname||defvar||||
|-
|terror||0||||
|-
|time_zone||Europe/Berlin||||
|}

Revision as of 14:05, 22 July 2006

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

name example value description functions using the variable
BASH /bin/bash
BASH_VERSION '2.05b.0(1)-release'
BOOT_DEVICE /dev/sda
BOOT_IMAGE workgroup.opteron
BOOT_PARTITION /dev/sda1
BROADCAST 192.168.0.127
COLOR_FAI_LOGO 1
CONSOLE /dev/console
DEBIAN_FRONTEND noninteractive
DIRSTACK ()
DNSDOMAIN workgroup.uni-jena.de
DNSSRVS 192.168.1.16
DNSSRVS_1 192.168.1.16
DOMAIN workgroup.uni-jena.de
DO_INIT_TASKS 1
FAI /fai
FAI_ACTION install
FAI_CONSOLEFONT
FAI_FLAGS 'createvt sshd'
FAI_KEYMAP de
FAI_LOCATION 192.168.0.8:/usr/share/fai
FAI_LOGPROTO
FAI_REMOTECP scp
FAI_REMOTESH ssh
FAI_ROOT /tmp/target
FAI_RUNDATE 20060123_163824
FAI_VERSION 'FAI 2.8.4, 25 May 2005'
FUNCNAME task_defvar
GATEWAYS 192.168.0.1
GATEWAYS_1 192.168.0.1
GROUPS ()
HOSTNAME 192.168.0.14
HOSTTYPE x86_64
IFS $' \t\n'
INIT_VERSION sysvinit-2.86
INSTALL all-install
IPADDR 192.168.0.14
LOGDIR /tmp/fai
LOGPASSWD
LOGREMOTEDIR upload
LOGSERVER
LOGUSER
MACHTYPE x86_64-pc-linux-gnu
MNTPOINT /mnt2
NETMASK 255.255.255.128
NETWORK 192.168.0.0
OLDPWD /
OPTERR 1
OPTIND 1
OSTYPE linux-gnu
OS_TYPE linux
PATH /usr/local/sbin:/usr/local/bin:/usr/lib/fai:/bin:/sbin:/usr/bin:/usr/sbin:
PIPESTATUS ([0] "0")
PREVLEVEL N
PS4 '+ '
ROOTCMD 'chroot /tmp/target'
ROOT_PARTITION /dev/sda1
RUNLEVEL S
SERVERINTERFACE eth0
SHELL /bin/bash
SHLVL 1
TEMP ' --'
TERM linux
UTC yes
addpackages
backup true
bserver watchtower
cfclasses DEFAULT.AMD64.LINUX.BOOT.WORKGROUP.CLUSTERMASTER.all-install.SCSI.GRUB.OPTERON.141.LAST
classes $'DEFAULT\nAMD64\nLINUX\nBOOT\nWORKGROUP\nCLUSTERMASTER\nall-install\nSCSI\
nGRUB\nOPTERON\n141\nLAST'
console tty0
createvt 1
device_size 'sda 71687372'
disklist sda
diskvar /tmp/fai/disk_var.sh
faimond 0
files /fai/files
force true
fstab fstab
hdparm
hserver watchtower
ip dhcp
kernelimage kernel-image-2.6.14.0.3_amd64.deb
kernelversion 2.6.14
liloappend
lpipe /tmp/fai/logfifo
mirrorhost 192.168.0.8
moduleslist psmouse
moduleslog /tmp/fai/modules.log
monserver
netdevices eth0
netdevices_all $'eth0\neth0\neth1\neth1\neth0\neth0\neth0 eth0 eth1'
netdevices_up eth0
nfsroot 192.168.0.12:/usr/lib/fai/nfsroot-amd64/
noexec off
printers lw
rcslog /tmp/fai/fai.log
renewclass 1
romountopt '-o async,noatime,nolock,ro,actimeo 1800'
rundir /var/run/fai
sndhostname
sshd 1
stamp /var/run/fai/FAI_INSTALLATION_IN_PROGRESS
target /tmp/target
taskname defvar
terror 0
time_zone Europe/Berlin