Variables: Difference between revisions

From FAIWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 37: Line 37:
|FAI_KEYMAP||||de||class/*.var||||
|FAI_KEYMAP||||de||class/*.var||||
|-
|-
|FAI_LOCATION||||192.168.0.8:/usr/share/fai||||get_bootp_info() get_fai_dir() get_fai_cvs()||
|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_LOGPROTO|||| ||fai.conf||save_log_remote()||can be removed from fai.conf, should be defined in class/*.var
|-
|-
|FAI_REMOTECP||||scp||||save_log_remote_shell()||
|FAI_REMOTECP||||scp||fai.conf || fai-setup, fai-savelog||
|-
|-
|FAI_REMOTESH||||ssh||||save_log_remote_shell() task_chboot()||
|FAI_REMOTESH||||ssh||fai.conf || fai-setup, fai-savelog, task_chboot()||
|-
|-
|FAI_ROOT||||/tmp/target||||||
|FAI_ROOT||||/tmp/target|||| almost every script||
|-
|-
|FAI_RUNDATE||int||20060123_163824||||fai-savelog||
|FAI_RUNDATE||int||20060123_163824||task_setup()||fai-savelog||
|-
|-
|FAI_VERSION||||'FAI 2.8.4, 25 May 2005'||||||
|FAI_VERSION||int||FAI 2.10.5||||fai, prcopyleft()||
|-
|FUNCNAME||||task_defvar||||||
|-
|-
|GATEWAYS||||192.168.0.1||||||
|GATEWAYS||||192.168.0.1||||||
Line 57: Line 55:
|GATEWAYS_1||||192.168.0.1||||||
|GATEWAYS_1||||192.168.0.1||||||
|-
|-
|HOSTNAME||||192.168.0.14||||||
|HOSTNAME||||192.168.0.14||||very often||
|-
|HOSTTYPE||||x86_64||||||
|-
|-
|INSTALL||||all-install||||||
|HOSTTYPE||||x86_64|||| prcopyleft ||
|-
|-
|IPADDR||||192.168.0.14||||||
|IPADDR||||192.168.0.14||||||
|-
|-
|LOGDIR||||/tmp/fai||||||
|LOGDIR||||/tmp/fai||||very often||
|-
|-
|LOGPASSWD|||| ||||||
|LOGPASSWD|||| ||fai.conf ||fai-savelog-ftp|| maybe removed from fai.conf
|-
|-
|LOGREMOTEDIR||||upload||||||
|LOGREMOTEDIR||||upload|| fai.conf ||fai-savelog-ftp || maybe removed from fai.conf
|-
|-
|LOGSERVER|||| ||||||
|LOGSERVER|||| ||fai.conf || fai-savelog, fai-savelog-ftp|| default: LOGSERVER=$SERVER, maybe removed from fai.conf
|-
|-
|LOGUSER|||| ||||||
|LOGUSER|||| ||||||

Revision as of 16:03, 25 July 2006

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

name internal 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
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:
ROOTCMD 'chroot /tmp/target'
ROOT_PARTITION /dev/sda1
SERVERINTERFACE eth0
UTC yes
addpackages
HOST demohost
backup true
bserver watchtower
cfclasses DEFAULT.AMD64.LINUX.LAST
classes DEFAULT AMD64 LINUX LAST
console tty0
createvt 1
device_size 'sda 71687372'
disklist sda
diskvar /tmp/fai/disk_var.sh
installserver 0 only used for building FAI_LOCATION unset very early can be removed
faimond 0
files /fai/files
force true
fstab int fstab was used for solaris, fstab -> vfstab can be removed
ip dhcp
liloappend
lpipe /tmp/fai/logfifo
mirrorhost 192.168.0.8
moduleslist psmouse class/*.var scripts/FAIBASE/10-misc
monserver
netdevices eth0
netdevices_all eth0 eth1 ath0
netdevices_up eth0
nfsroot 192.168.0.12:/usr/lib/fai/nfsroot-amd64/
noexec off
rcslog int $LOGDIR/fai.log
renewclass 1
romountopt int '-o async,noatime,nolock,ro,actimeo 1800'
rundir /var/run/fai
sndhostname
sshd 1 define_fai_flags()
stamp int /var/run/fai/FAI_INSTALLATION_IN_PROGRESS
target /tmp/target same as $FAI_ROOT
terror int 0 every task can set it
time_zone Europe/Berlin class/*.var