This is an old revision of the document!


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=fsipassw                            # fsi db userpassword
pgmain=9                                  # postgresql version
pgsub=4
pgpkgnr=2
 
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
 
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=(                                # 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
    -
    140
    f
    f100                                  # first + 100
    l10                                   # last - 10
)
dhcpd_range_end=(                         # range end (default = 200)
    200
    210
    -
    f200                                  # first + 100
    l                                     # last
    l20                                   # last - 20
    +20                                   # start dhcp ip + 10 ips
)
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
)
dhcpd_pxefile=(                           # default = pxelinux.0 if not exist
    pxelinux.0                            # optional other boot file - default pxelinux.0
    -                                     # use default
    nixfile.5
    *dkfasjöasdf
)
 
 
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"