[server] / trunk / build / ks.cfg Repository:
ViewVC logotype

View of /trunk/build/ks.cfg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 366 - (download) (annotate)
Tue Jul 21 12:21:58 2009 UTC (3 years, 10 months ago) by amartin
File size: 2416 byte(s)
Allow for building branches and tags in the build scripts.
    1 #######################################
    2 # Kickstart file for DiaStar appliance
    3 #
    4 #######################################
    5 
    6 #platform=x86, AMD64, or Intel EM64T
    7 #version=BETA
    8 
    9 # Firewall configuration
   10 # Dialogic RTP 49152 (2 ports per channel, rtp and rtcp)
   11 firewall --enabled --ssh --port=42420:tcp,49152-51152:udp
   12 
   13 # Root password
   14 rootpw --iscrypted $1$137n62W.$C4fWL0yd10McOTZOfwxVu1
   15 
   16 # System authorization information
   17 auth  --useshadow  --passalgo=md5
   18 
   19 # Use graphical install
   20 graphical
   21 firstboot --disable
   22 
   23 # Skip the X Window System configuration
   24 skipx
   25 
   26 # System keyboard
   27 keyboard us
   28 
   29 # System language
   30 lang en_US
   31 
   32 # SELinux configuration
   33 selinux --disabled
   34 
   35 # Install OS instead of upgrade
   36 install
   37 
   38 # Use CDROM installation media
   39 cdrom
   40 
   41 # System timezone
   42 timezone  --utc America/New_York
   43 
   44 # Network configuration
   45 network --bootproto=query --device=eth0 --onboot=on --hostname=diastar
   46 
   47 # System bootloader configuration
   48 bootloader --location=mbr
   49 
   50 # Clear the Master Boot Record
   51 zerombr
   52 
   53 
   54 # Partition clearing information
   55 clearpart --all --initlabel
   56 
   57 # Disk partitioning information
   58 part /boot --fstype="ext3" --size=128
   59 part swap --size=1024
   60 part / --fstype="ext3" --size=4096
   61 part /var --fstype="ext3" --grow --size=1
   62 
   63 # Pre installation
   64 #%pre
   65 
   66 # Packages to be installed
   67 %packages --resolvedeps
   68 e2fsprogs
   69 grub
   70 kernel
   71 ntp
   72 gcc
   73 compat-libstdc++-33-3.2.3-61.i386
   74 DiaStar
   75 
   76 %post --nochroot
   77 #!/bin/sh
   78 
   79 # Copy the Dialogic install from the CDROM
   80 mkdir /mnt/cdrom
   81 mount -t iso9660 /tmp/cdrom /mnt/cdrom
   82 cp /mnt/cdrom/extras/lnx3.1.1_1.tgz /mnt/sysimage/tmp/
   83 cp /mnt/cdrom/extras/Hmp.Uconfig /mnt/sysimage/tmp/
   84 tar -zxvf /mnt/sysimage/tmp/lnx3.1.1_1.tgz -C /mnt/sysimage/tmp/
   85 umount /mnt/cdrom
   86 rmdir /mnt/cdrom
   87 
   88 
   89 # Post installation
   90 %post
   91 #!/bin/sh
   92 
   93 # Disable root ssh access
   94 #echo 'PermitRootLogin no' >> /etc/ssh/sshd_config
   95 
   96 # Create admin account
   97 useradd -c 'System administrator' -m -p 'admin' admin
   98 echo 'export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin' >> /home/admin/.bash_profile
   99 echo 'admin ALL = ALL' >> /etc/sudoers
  100 
  101 # Create the DiaStar user
  102 useradd -c 'DiaStar user account' diastar
  103 
  104 # Install Dialogic
  105 cd /tmp/redistributable-runtime/
  106 ./install.sh --silent ALL
  107 
  108 # RTP latency mods
  109 cp /tmp/Hmp.Uconfig /usr/dialogic/data
  110 
  111 # Stop CentOS yum updates
  112 rm -f /etc/yum.repos.d/*
  113 
  114 # Performance mods
  115 #
  116 sysctl -w fs.file-max=100000
  117 sysctl -w net.core.netdev_max_backlog=8192
  118 sysctl -w net.core.somaxconn=8192
  119 

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.8