Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
deploy:fsiinstcfg [2021/03/16 13:52] – created jsdeploy:fsiinstcfg [2024/03/07 07:51] (current) js
Line 2: Line 2:
  
 This is an example config file for the fsiinst installation: This is an example config file for the fsiinst installation:
-<code xml+<code bash
-fsienv=LAB                                # fsi environment +fsienv=LAB                                    # fsi environment 
-fsidb=fsidb                               # fsi db name +fsidb=fsidb                                   # fsi db name 
-fsiusr=fsiusr                             # fsi db user +fsiusr=fsiusr                                 # fsi db user 
-fsipw=fsipassw                            # fsi db userpassword +fsipw=fsipassword!                            # fsi db userpassword 
-pgmain=9                                  postgresql version +pgmain=9                                      fixed entry for configuration for this fsi version 
-pgsub=4 +pgsub=4                                       # fixed entry for configuration for this fsi version 
-pgpkgnr=2+pgpkgnr=2                                     # fixed entry for configuration for this fsi version
  
 fsisrv=$HOSTNAME fsisrv=$HOSTNAME
-backuplink="/mnt/bak"                     # optional a link for the backup (default = /opt/fsi/backup) +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_create="yes"                               # optional create HA export on fsi deploy server (default = no) 
-ha_export_dir="/var/shares/nfs4ha"        # directory to export for HA +ha_export_dir="/var/shares/nfs4ha"            # directory to export for HA 
-update="no"                               # run yum update at the end of the installation (default = yes) +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 +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+trace="yes"                                   # enable trace mode on fsi server (default no) for portal, daemon and installations
  
-dhcpd=yes                                 # install dhcpd+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=( dhcpd_net=(
-    172.16.23.0                           # dhcpd supported networks+    172.16.23.0                               # dhcpd supported networks
     172.16.99.128     172.16.99.128
     172.16.5     172.16.5
Line 33: Line 38:
 ) )
 dhcpd_nm=( dhcpd_nm=(
-    255.255.255.0                         # override found or default nm +    255.255.255.0                             # override found or default nm 
-    255.255.255.128                       # /25 +    255.255.255.128                           # /25 
-    /26                                   # 255.255.255.192+    /26                                       # 255.255.255.192
     255.255.255.248     255.255.255.248
     255.255.0.0     255.255.0.0
-    255.555.255.0                         # wrong netmask+    255.555.255.0                             # wrong netmask
     -     -
     23     23
 ) )
-dhcpd_gw=(                                # default gateway is the first server ip in the network +dhcpd_gw=(                                    option routers: default gateway is the first server ip in the network 
-    250                                   # default ip in 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)+    -                                         # - 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     172.16.5.3
     -     -
     300.16.0.1     300.16.0.1
     172.16.5.1     172.16.5.1
-    f                                     # first ip in ip segment +    f                                         # first ip in ip segment 
-    l                                     # last ip in segment +    l                                         # last ip in segment 
-    l20                                   # last - 20+    l20                                       # last - 20
 ) )
-dhcpd_range_start=(                       # dhcpd range in above net start (default = 100) +dhcpd_range_start=(                           # dhcpd range in above net start (default = 100) 
-    100+    100                                       # if /24 netmask, only last number needed 
     -     -
-    140+    172.16.99.140                             # with netmask /26 (<> /24) - the full ip is needed                                                                  
     f     f
-    f100                                  # first + 100 +    f100                                      # first + 100 
-    l10                                   # last - 10+    l10                                       # last - 10
 ) )
-dhcpd_range_end=(                         # range end (default = 200)+dhcpd_range_end=(                             # range end (default = 200)
     200     200
-    210+    172.16.99.210                             # netmask <> /24 => full ip needed
     -     -
-    f200                                  # first + 100 +    f200                                      # first + 100 
-    l                                     # last +    l                                         # last 
-    l20                                   # last - 20 +    l20                                       # last - 20 
-    +20                                   # start dhcp ip + 10 ips+    +20                                       # start dhcp ip + 10 ips
 ) )
-dhcpd_nextsrv=(                           # if not given = take the fsi ip on this network +default_nextsrv=172.16.0.60                   # Override default nextsrv 
-    10.100.11.10                          # next server for the above net +dhcpd_nextsrv=(                               # if not given = take the fsi ip on this network 
-    -                                     # default ip from fsi deploy server 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     172.16.5.1
 ) )
-dhcpd_pxefile=(                           # default = pxelinux.0 if not exist +default_pxefile=pxelinux.0                    # Override default load file for all networks 
-    pxelinux.0                            # optional other boot file - default pxelinux.0 +dhcpd_pxefile=(                               # default = pxelinux.0 if not exist 
-    -                                     # use default+    pxelinux.0                                # optional other boot file - default pxelinux.0 
 +    -                                         # use default
     nixfile.5     nixfile.5
-    *dkfasjöasdf+
 +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
 ) )
  
Line 88: Line 134:
 cmds[3]='/bin/sed -i "s/metalink/#metalink/" "/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+inst_rpm=(                                     # install additional rpms
    mlocate    mlocate
    htop    htop
Line 94: Line 140:
 ) )
  
-symbefore["/mnt"]="/tmp/mnt-symlinks"      # create symlink before fsi installation starts+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/rhel/mirror"]="/opt/fsi/repos/redhat"        # symlink create after fsi installation before install additional rpms
 symafter["/mnt/general/epel/mirror"]="/opt/fsi/repos/epel" symafter["/mnt/general/epel/mirror"]="/opt/fsi/repos/epel"
  
 </code> </code>