Variables: Difference between revisions

From FAIWiki
Jump to navigation Jump to search
(remove non FAI variables)
No edit summary
Line 2: Line 2:


{|border=1
{|border=1
!name!!example value!!description!!functions using the variable!!comments
!name!!internal!!example value!!description!!functions using the variable!!comments
|-
|-
|BOOT_PARTITION||/dev/sda1||||||
|BOOT_PARTITION||||/dev/sda1||||||
|-
|-
|BROADCAST||192.168.0.127||||setnet()||
|BROADCAST||||192.168.0.127||||setnet()||
|-
|-
|COLOR_FAI_LOGO||1||||||Does not work for installation on x86. Used in script ''prcopyleft''
|COLOR_FAI_LOGO||||1||||||Does not work for installation on x86. Used in script ''prcopyleft''
|-
|-
|CONSOLE||/dev/console||||||
|CONSOLE||||/dev/console||||||
|-
|-
|DEBIAN_FRONTEND||noninteractive||||||
|DEBIAN_FRONTEND||||noninteractive||||||
|-
|-
|DNSDOMAIN||workgroup.de||||task_setup()||just used because cfengine can't use DOMAIN
|DNSDOMAIN||||workgroup.de||||task_setup()||just used because cfengine can't use DOMAIN
|-
|-
|DNSSRVS||192.168.1.16||||||
|DNSSRVS||||192.168.1.16||||||
|-
|-
|DNSSRVS_1||192.168.1.16||||||
|DNSSRVS_1||||192.168.1.16||||||
|-
|-
|DOMAIN||workgroup.uni-jena.de||||task_setup() task_prepareapt()||
|DOMAIN||||workgroup.uni-jena.de||||task_setup() task_prepareapt()||
|-
|-
|DO_INIT_TASKS||1||||task_confdir()||also used  in prcopyleft
|DO_INIT_TASKS||||1||||task_confdir()||also used  in prcopyleft
|-
|-
|FAI||/fai||||almost every function||
|FAI||||/fai||||almost every function||
|-
|-
|FAI_ACTION||install,sysinfo,softupdate ||||save_log_local() save_log_remote_shell() save_log_remote() get_bootp_info() task_action()|| used in the scripts ''fai-savelog-ftp'',''updatebase''
|FAI_ACTION||||install,sysinfo,softupdate ||||save_log_local() save_log_remote_shell() save_log_remote() get_bootp_info() task_action()|| used in the scripts ''fai-savelog-ftp'',''updatebase''
|-
|-
|FAI_CONSOLEFONT|| ||||||
|FAI_CONSOLEFONT|||| ||||||
|-
|-
|FAI_FLAGS||'createvt sshd'||||get_bootp_info() define_fai_flags()||
|FAI_FLAGS||||'createvt sshd'||||get_bootp_info() define_fai_flags()||
|-
|-
|FAI_KEYMAP||de||||||
|FAI_KEYMAP||||de||||||
|-
|-
|FAI_LOCATION||192.168.0.8:/usr/share/fai||||get_bootp_info() get_fai_dir() get_fai_cvs()||
|FAI_LOCATION||||192.168.0.8:/usr/share/fai||||get_bootp_info() get_fai_dir() get_fai_cvs()||
|-
|-
|FAI_LOGPROTO|| ||||save_log_remote()||
|FAI_LOGPROTO|||| ||||save_log_remote()||
|-
|-
|FAI_REMOTECP||scp||||save_log_remote_shell()||
|FAI_REMOTECP||||scp||||save_log_remote_shell()||
|-
|-
|FAI_REMOTESH||ssh||||save_log_remote_shell() task_chboot()||
|FAI_REMOTESH||||ssh||||save_log_remote_shell() task_chboot()||
|-
|-
|FAI_ROOT||/tmp/target||||||
|FAI_ROOT||||/tmp/target||||||
|-
|-
|FAI_RUNDATE||20060123_163824||||||
|FAI_RUNDATE||||20060123_163824||||||
|-
|-
|FAI_VERSION||'FAI 2.8.4, 25 May 2005'||||||
|FAI_VERSION||||'FAI 2.8.4, 25 May 2005'||||||
|-
|-
|FUNCNAME||task_defvar||||||
|FUNCNAME||||task_defvar||||||
|-
|-
|GATEWAYS||192.168.0.1||||||
|GATEWAYS||||192.168.0.1||||||
|-
|-
|GATEWAYS_1||192.168.0.1||||||
|GATEWAYS_1||||192.168.0.1||||||
|-
|-
|HOSTNAME||192.168.0.14||||||
|HOSTNAME||||192.168.0.14||||||
|-
|-
|HOSTTYPE||x86_64||||||
|HOSTTYPE||||x86_64||||||
|-
|-
|INSTALL||all-install||||||
|INSTALL||||all-install||||||
|-
|-
|IPADDR||192.168.0.14||||||
|IPADDR||||192.168.0.14||||||
|-
|-
|LOGDIR||/tmp/fai||||||
|LOGDIR||||/tmp/fai||||||
|-
|-
|LOGPASSWD|| ||||||
|LOGPASSWD|||| ||||||
|-
|-
|LOGREMOTEDIR||upload||||||
|LOGREMOTEDIR||||upload||||||
|-
|-
|LOGSERVER|| ||||||
|LOGSERVER|||| ||||||
|-
|-
|LOGUSER|| ||||||
|LOGUSER|||| ||||||
|-
|-
|MACHTYPE||x86_64-pc-linux-gnu||||||
|MACHTYPE||||x86_64-pc-linux-gnu||||||
|-
|-
|MNTPOINT||/mnt2||||||
|MNTPOINT||||/mnt2||||||
|-
|-
|NETMASK||255.255.255.128||||||
|NETMASK||||255.255.255.128||||||
|-
|-
|NETWORK||192.168.0.0||||||
|NETWORK||||192.168.0.0||||||
|-
|-
|OSTYPE||linux-gnu||||||
|OSTYPE||||linux-gnu||||||
|-
|-
|OS_TYPE||linux|| || ||
|OS_TYPE||||linux|| || ||
|-
|-
|PATH||/usr/local/sbin:/usr/local/bin:/usr/lib/fai:/bin:/sbin:/usr/bin:/usr/sbin:||||||
|PATH||||/usr/local/sbin:/usr/local/bin:/usr/lib/fai:/bin:/sbin:/usr/bin:/usr/sbin:||||||
|-
|-
|ROOTCMD||'chroot /tmp/target'||||||
|ROOTCMD||||'chroot /tmp/target'||||||
|-
|-
|ROOT_PARTITION||/dev/sda1||||||
|ROOT_PARTITION||||/dev/sda1||||||
|-
|-
|SERVERINTERFACE||eth0||||||
|SERVERINTERFACE||||eth0||||||
|-
|-
|UTC||yes||||||
|UTC||||yes||||||
|-
|-
|addpackages|| || || ||removed in ???|
|addpackages|||| || || ||removed in ???|
|-
|-
|HOST|| demohost || || || set host name|
|HOST|||| demohost || || || set host name|
|-
|-
|backup||true||||||
|backup||||true||||||
|-
|-
|bserver||watchtower||||||
|bserver||||watchtower||||||
|-
|-
|cfclasses||DEFAULT AMD64 LINUX BOOT WORKGROUP SCSI GRUB LAST||||||
|cfclasses||||DEFAULT AMD64 LINUX BOOT WORKGROUP SCSI GRUB LAST||||||
|-
|-
|classes||DEFAULT AMD64 LINUX BOOT WORKGROUP CLUSTERMASTER all-install SCSI||||||
|classes||||DEFAULT AMD64 LINUX BOOT WORKGROUP CLUSTERMASTER all-install SCSI||||||
|-
|-
|console||tty0||||||
|console||||tty0||||||
|-
|-
|createvt||1||||||
|createvt||||1||||||
|-
|-
|device_size||'sda 71687372'||||||
|device_size||||'sda 71687372'||||||
|-
|-
|disklist||sda||||||
|disklist||||sda||||||
|-
|-
|diskvar||/tmp/fai/disk_var.sh||||||
|diskvar||||/tmp/fai/disk_var.sh||||||
|-
|-
|faimond||0||||||
|faimond||||0||||||
|-
|-
|files||/fai/files||||||
|files||||/fai/files||||||
|-
|-
|force||true||||||
|force||||true||||||
|-
|-
|fstab||fstab||||||
|fstab||||fstab||||||
|-
|-
|hdparm|| ||||||
|hdparm|||| ||||||
|-
|-
|hserver||watchtower||||||
|hserver||||watchtower||||||
|-
|-
|ip||dhcp||||||
|ip||dhcp||||||||
|-
|-
|kernelimage||kernel-image-2.6.14.0.3_amd64.deb||||||
|kernelimage||||kernel-image-2.6.14.0.3_amd64.deb||||||
|-
|-
|kernelversion||2.6.14|| || ||
|kernelversion||||2.6.14|| || ||
|-
|-
|liloappend|| || || ||
|liloappend|||| || || ||
|-
|-
|lpipe||/tmp/fai/logfifo||||||
|lpipe||||/tmp/fai/logfifo||||||
|-
|-
|mirrorhost||192.168.0.8||||||
|mirrorhost||||192.168.0.8||||||
|-
|-
|moduleslist||psmouse||||||
|moduleslist||||psmouse||||||
|-
|-
|moduleslog||/tmp/fai/modules.log||||||
|moduleslog||||/tmp/fai/modules.log||||||
|-
|-
|monserver|| ||||||
|monserver|||| ||||||
|-
|-
|netdevices||eth0||||||
|netdevices||||eth0||||||
|-
|-
|netdevices_all||eth0 eth1 ath0||||||
|netdevices_all||||eth0 eth1 ath0||||||
|-
|-
|netdevices_up||eth0||||||
|netdevices_up||||eth0||||||
|-
|-
|nfsroot||192.168.0.12:/usr/lib/fai/nfsroot-amd64/||||||
|nfsroot||||192.168.0.12:/usr/lib/fai/nfsroot-amd64/||||||
|-
|-
|noexec||off|| || ||
|noexec||||off|| || ||
|-
|-
|printers||lw|| || ||
|printers||||lw|| || ||
|-
|-
|rcslog||/tmp/fai/fai.log||||||
|rcslog||||/tmp/fai/fai.log||||||
|-
|-
|renewclass||1|| || ||
|renewclass||||1|| || ||
|-
|-
|romountopt||'-o async,noatime,nolock,ro,actimeo 1800'|| || ||
|romountopt||||'-o async,noatime,nolock,ro,actimeo 1800'|| || ||
|-
|-
|rundir||/var/run/fai|| || ||
|rundir||||/var/run/fai|| || ||
|-
|-
|sndhostname|| || || ||
|sndhostname|||| || || ||
|-
|-
|sshd||1|| || ||
|sshd||||1|| || ||
|-
|-
|stamp||/var/run/fai/FAI_INSTALLATION_IN_PROGRESS|| || ||
|stamp||||/var/run/fai/FAI_INSTALLATION_IN_PROGRESS|| || ||
|-
|-
|target||/tmp/target|| || ||
|target||||/tmp/target|| || ||
|-
|-
|taskname||defvar|| || ||
|taskname||||defvar|| || ||
|-
|-
|terror||0|| || ||
|terror||||0|| || ||
|-
|-
|time_zone||Europe/Berlin|| || ||
|time_zone||||Europe/Berlin|| || ||
|}
|}

Revision as of 13:15, 23 July 2006

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

name internal example value description functions using the variable comments
BOOT_PARTITION /dev/sda1
BROADCAST 192.168.0.127 setnet()
COLOR_FAI_LOGO 1 Does not work for installation on x86. Used in script prcopyleft
CONSOLE /dev/console
DEBIAN_FRONTEND noninteractive
DNSDOMAIN workgroup.de task_setup() just used because cfengine can't use DOMAIN
DNSSRVS 192.168.1.16
DNSSRVS_1 192.168.1.16
DOMAIN workgroup.uni-jena.de task_setup() task_prepareapt()
DO_INIT_TASKS 1 task_confdir() also used in prcopyleft
FAI /fai almost every function
FAI_ACTION install,sysinfo,softupdate save_log_local() save_log_remote_shell() save_log_remote() get_bootp_info() task_action() used in the scripts fai-savelog-ftp,updatebase
FAI_CONSOLEFONT
FAI_FLAGS 'createvt sshd' get_bootp_info() define_fai_flags()
FAI_KEYMAP de
FAI_LOCATION 192.168.0.8:/usr/share/fai get_bootp_info() get_fai_dir() get_fai_cvs()
FAI_LOGPROTO save_log_remote()
FAI_REMOTECP scp save_log_remote_shell()
FAI_REMOTESH ssh save_log_remote_shell() task_chboot()
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
HOSTNAME 192.168.0.14
HOSTTYPE x86_64
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
OSTYPE linux-gnu
OS_TYPE linux
PATH /usr/local/sbin:/usr/local/bin:/usr/lib/fai:/bin:/sbin:/usr/bin:/usr/sbin:
ROOTCMD 'chroot /tmp/target'
ROOT_PARTITION /dev/sda1
SERVERINTERFACE eth0
UTC yes
addpackages
HOST demohost
backup true
bserver watchtower
cfclasses DEFAULT AMD64 LINUX BOOT WORKGROUP SCSI GRUB LAST
classes DEFAULT AMD64 LINUX BOOT WORKGROUP CLUSTERMASTER all-install SCSI
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 eth1 ath0
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