Parent Directory
|
Revision Log
Revision 430 - (view) (download)
| 1 : | jtarlton | 361 | ####################################### |
| 2 : | # Kickstart file for DiaStar appliance | ||
| 3 : | # | ||
| 4 : | ####################################### | ||
| 5 : | |||
| 6 : | amartin | 333 | #platform=x86, AMD64, or Intel EM64T |
| 7 : | jtarlton | 361 | #version=BETA |
| 8 : | amartin | 333 | |
| 9 : | # Firewall configuration | ||
| 10 : | amartin | 342 | # Dialogic RTP 49152 (2 ports per channel, rtp and rtcp) |
| 11 : | amartin | 345 | firewall --enabled --ssh --port=42420:tcp,49152-51152:udp |
| 12 : | amartin | 333 | |
| 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 : | jtarlton | 361 | network --bootproto=query --device=eth0 --onboot=on --hostname=diastar |
| 46 : | amartin | 333 | |
| 47 : | # System bootloader configuration | ||
| 48 : | bootloader --location=mbr | ||
| 49 : | |||
| 50 : | # Clear the Master Boot Record | ||
| 51 : | zerombr | ||
| 52 : | |||
| 53 : | |||
| 54 : | # Partition clearing information | ||
| 55 : | amartin | 342 | clearpart --all --initlabel |
| 56 : | amartin | 333 | |
| 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 : | amartin | 342 | # Pre installation |
| 64 : | #%pre | ||
| 65 : | amartin | 333 | |
| 66 : | # Packages to be installed | ||
| 67 : | %packages --resolvedeps | ||
| 68 : | e2fsprogs | ||
| 69 : | grub | ||
| 70 : | kernel | ||
| 71 : | ntp | ||
| 72 : | amartin | 372 | vim-enhanced |
| 73 : | amartin | 333 | gcc |
| 74 : | amartin | 372 | gcc-c++ |
| 75 : | amartin | 333 | compat-libstdc++-33-3.2.3-61.i386 |
| 76 : | amartin | 372 | ncurses |
| 77 : | ncurses-devel | ||
| 78 : | libtermcap | ||
| 79 : | libtermcap-devel | ||
| 80 : | termcap | ||
| 81 : | amartin | 366 | DiaStar |
| 82 : | amartin | 333 | |
| 83 : | %post --nochroot | ||
| 84 : | #!/bin/sh | ||
| 85 : | |||
| 86 : | # Copy the Dialogic install from the CDROM | ||
| 87 : | mkdir /mnt/cdrom | ||
| 88 : | mount -t iso9660 /tmp/cdrom /mnt/cdrom | ||
| 89 : | cp /mnt/cdrom/extras/lnx3.1.1_1.tgz /mnt/sysimage/tmp/ | ||
| 90 : | amartin | 346 | cp /mnt/cdrom/extras/Hmp.Uconfig /mnt/sysimage/tmp/ |
| 91 : | amartin | 430 | cp /mnt/cdrom/extras/SS7DiaStar.tgz /mnt/sysimage/tmp/ |
| 92 : | amartin | 333 | tar -zxvf /mnt/sysimage/tmp/lnx3.1.1_1.tgz -C /mnt/sysimage/tmp/ |
| 93 : | amartin | 430 | tar -zxvf /mnt/sysimage/tmp/SS7DiaStar.tgz -C /mnt/sysimage/tmp/ |
| 94 : | amartin | 333 | umount /mnt/cdrom |
| 95 : | rmdir /mnt/cdrom | ||
| 96 : | |||
| 97 : | |||
| 98 : | amartin | 342 | # Post installation |
| 99 : | %post | ||
| 100 : | amartin | 333 | #!/bin/sh |
| 101 : | |||
| 102 : | # Disable root ssh access | ||
| 103 : | #echo 'PermitRootLogin no' >> /etc/ssh/sshd_config | ||
| 104 : | |||
| 105 : | # Create admin account | ||
| 106 : | useradd -c 'System administrator' -m -p 'admin' admin | ||
| 107 : | echo 'export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin' >> /home/admin/.bash_profile | ||
| 108 : | echo 'admin ALL = ALL' >> /etc/sudoers | ||
| 109 : | |||
| 110 : | # Create the DiaStar user | ||
| 111 : | useradd -c 'DiaStar user account' diastar | ||
| 112 : | |||
| 113 : | # Install Dialogic | ||
| 114 : | cd /tmp/redistributable-runtime/ | ||
| 115 : | ./install.sh --silent ALL | ||
| 116 : | |||
| 117 : | amartin | 346 | # RTP latency mods |
| 118 : | cp /tmp/Hmp.Uconfig /usr/dialogic/data | ||
| 119 : | |||
| 120 : | amartin | 430 | # Install SS7 |
| 121 : | mv /tmp/SS7DiaStar/gcss7.cfg /usr/dialogic/cfg | ||
| 122 : | mkdir /usr/dialogic/SS7 | ||
| 123 : | cp -R --preserve=links /tmp/SS7DiaStar/* /usr/dialogic/SS7 | ||
| 124 : | |||
| 125 : | |||
| 126 : | amartin | 342 | # Stop CentOS yum updates |
| 127 : | rm -f /etc/yum.repos.d/* | ||
| 128 : | |||
| 129 : | amartin | 333 | # Performance mods |
| 130 : | # | ||
| 131 : | sysctl -w fs.file-max=100000 | ||
| 132 : | sysctl -w net.core.netdev_max_backlog=8192 | ||
| 133 : | amartin | 342 | sysctl -w net.core.somaxconn=8192 |
| 134 : |
| No admin address has been configured | ViewVC Help |
| Powered by ViewVC 1.0.8 |