fsiinst.cfg

This is an example config file for the fsiinst installation:

fsienv=LAB                                    # fsi environment
fsidb=fsidb                                   # fsi db name
fsiusr=fsiusr                                 # fsi db user
fsipw=fsipassword!                            # fsi db userpassword
pgmain=9                                      # fixed entry for configuration for this fsi version
pgsub=4                                       # fixed entry for configuration for this fsi version
pgpkgnr=2                                     # fixed entry for configuration for this fsi version
 
fsisrv=$HOSTNAME
backuplink="/mnt/bak"                         # optional a link for the backup (default = /opt/fsi/backup)
ha_create="yes"                               # optional create HA export on fsi deploy server (default = no)
ha_export_dir="/var/shares/nfs4ha"            # directory to export for HA
update="no"                                   # run yum update at the end of the installation (default = yes)
debug="debug"                                 # message output level (info/debug/trace) of fsiinst script during installation / update of fsi server
trace="yes"                                   # enable trace mode on fsi server (default no) for portal, daemon and installations
 
rsyslog[1]='cron.*   @172.16.0.5'             # Rsyslog additional config in /etc/rsyslog.d/fsi.conf
rsyslog[2]='*.*	@172.19.2.16		# udp (standard for syslog)'
rsyslog[3]='*.*	@@172.19.2.17		# tcp'
 
 
dhcpd=yes                                     # install dhcpd
dhcpd_net=(
    172.16.23.0                               # dhcpd supported networks
    172.16.99.128
    172.16.5
    172.16.98.136
    172.16.0.0
    172.16.4.0
    172.16.97.0
    172.16.96.136
    169.254.0.0
    172.16.3.0
)
dhcpd_nm=(
    255.255.255.0                             # override found or default nm
    255.255.255.128                           # /25
    /26                                       # 255.255.255.192
    255.255.255.248
    255.255.0.0
    255.555.255.0                             # wrong netmask
    -
    23
)
dhcpd_gw=(                                    # option routers: default gateway is the first server ip in the network
    250                                       # default ip in network
    -                                         # - search for ip gw on fsi or takte default - /25 .129 (first server in subnet in example net 172.16.99.128)
    172.16.5.3
    -
    300.16.0.1
    172.16.5.1
    f                                         # first ip in ip segment
    l                                         # last ip in segment
    l20                                       # last - 20
)
dhcpd_range_start=(                           # dhcpd range in above net start (default = 100)
    100                                       # if /24 netmask, only last number needed 
    -
    172.16.99.140                             # with netmask /26 (<> /24) - the full ip is needed                                                                  
    f
    f100                                      # first + 100
    l10                                       # last - 10
)
dhcpd_range_end=(                             # range end (default = 200)
    200
    172.16.99.210                             # netmask <> /24 => full ip needed
    -
    f200                                      # first + 100
    l                                         # last
    l20                                       # last - 20
    +20                                       # start dhcp ip + 10 ips
)
default_nextsrv=172.16.0.60                   # Override default nextsrv
dhcpd_nextsrv=(                               # if not given = take the fsi ip on this network
    10.100.11.10                              # next server for the above net
    -                                         # default ip from fsi deploy server on this network
    172.16.5.1
)
default_pxefile=pxelinux.0                    # Override default load file for all networks
dhcpd_pxefile=(                               # default = pxelinux.0 if not exist
    pxelinux.0                                # optional other boot file - default pxelinux.0
    -                                         # use default
    nixfile.5
)
default_nis=lab.local
dhcpd_nis=(                                   # option nis-domain e.g. "lab.schnuerle.com"
   -
   lab.schnuerle.com
   schnuerle.com
)
default_domain=lab.schnuerle.com
dhcpd_domain=(                                # option domain-name e.g. "lab.local" - added to client name for fqdn
   lab.local
   -
   schnuerle.com
)
default_dns=172.16.0.8                        # Override default dns server for all networks
dhcpd_dns=(                                   # option domain-name-servers e.g. 172.16.0.4,172.16.2.1
   -
   172.16.0.4
   172.16.0.4,172.16.2.1
   -
   -
)
default_timeoff=-36000                        # Override default time offset
dhcpd_timeoff=(                               # option time-offset e.g. -18000 for Eastern Standard Time
   -18000
)
 
default_ntp=172.16.0.5                        # Override default ntp-servers for all networks
dhcpd_ntp=(                                   # option ntp-servers e.g. 172.16.0.3
   172.16.0.3
   -
)
default_lease=3600                            # Override default lease time
dhcpd_lease=(                                 # default-lease-time e.g. 600
   -
   3600
   600
)
default_maxlease=36000                        # Override fault default max lease time
dhcpd_maxlease=(                              # max-lease-time e.g. 7200
   7200
)
 
 
cmds[0]='yum -y localinstall http://$HOSTNAME/repos/epel/epel-release-latest-${osmain}.noarch.rpm'                               # additional commands before rpm installation (e.g. to install additional repos)
cmds[1]='/bin/sed -i "/^#baseurl.*/ s/download.fedoraproject.org\/pub/$HOSTNAME\/repos/" "/etc/yum.repos.d/epel.repo"'
cmds[2]='/bin/sed -i "/^#baseurl.*/ s/#baseurl/baseurl/" "/etc/yum.repos.d/epel.repo"'
cmds[3]='/bin/sed -i "s/metalink/#metalink/" "/etc/yum.repos.d/epel.repo"'
 
inst_rpm=(                                     # install additional rpms
   mlocate
   htop
   config-machine-kerberos
)
 
symbefore["/mnt"]="/tmp/mnt-symlinks"          # create symlink before fsi installation starts
 
symafter["/mnt/general/rhel/mirror"]="/opt/fsi/repos/redhat"        # symlink create after fsi installation before install additional rpms
symafter["/mnt/general/epel/mirror"]="/opt/fsi/repos/epel"