echo "Running Software Installations" # Activate SSH package sudo apt-get -y install openssh-server # Fix for E3-1240V3 IPMI Hang sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"/' /etc/default/grub sudo update-grub # Install Software wget -q -O /dev/null 'http://192.168.200.2/automation/updateKickstartInstallationStatus.php?kickstartInstallationId=11232&securityKey=znjfijpschthrikeavpjtklzimaykruj&percentComplete=95&message=Setting%20up%20SNMP' sudo apt-get install snmpd -y mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig service snmpd stop # Default Secured Servers echo 'rocommunity iuhet08532h\nsyslocation "PNAP, SecuredServers"\nsyscontact support@securedservers.com' > /etc/snmp/snmpd.conf sed -i 's/ 127.0.0.1//g' /etc/default/snmpd sed -i 's/snmpd.pid/snmpd.pid -c \/etc\/snmp\/snmpd.conf/g' /etc/default/snmpd wget -q -O /dev/null 'http://192.168.200.2/automation/updateKickstartInstallationStatus.php?kickstartInstallationId=11232&securityKey=znjfijpschthrikeavpjtklzimaykruj&percentComplete=99&message=Completing%20Installation' # Configure Network echo "# Loopback" > /etc/network/interfaces echo "auto lo" >> /etc/network/interfaces echo "iface lo inet loopback" >> /etc/network/interfaces echo "" >> /etc/network/interfaces echo "# Backend Interface" >> /etc/network/interfaces echo "auto eth0" >> /etc/network/interfaces echo "iface eth0 inet static" >> /etc/network/interfaces echo "address 172.23.144.162" >> /etc/network/interfaces echo "netmask 255.255.255.128" >> /etc/network/interfaces echo "" >> /etc/network/interfaces echo "# Public Interfaces" >> /etc/network/interfaces echo "auto eth1" >> /etc/network/interfaces echo "iface eth1 inet static" >> /etc/network/interfaces echo "address 108.170.1.170" >> /etc/network/interfaces echo "netmask 255.255.255.248" >> /etc/network/interfaces echo "gateway 108.170.1.169" >> /etc/network/interfaces # Name Servers echo "dns-search cwie.net" >> /etc/network/interfaces echo "dns-nameservers 64.38.192.12 64.38.192.13" >> /etc/network/interfaces # /etc/udev/rules.d/70-persistent-net.rules # KERNEL=="eth?", ATTR{address}=="00:25:90:c1:9b:5e", NAME="eth0" # KERNEL=="eth?", ATTR{address}=="00:25:90:c1:9b:5f", NAME="eth1" echo "" >> /etc/network/interfaces echo "auto eth1:1" >> /etc/network/interfaces echo "iface eth1:1 inet static" >> /etc/network/interfaces echo "address 108.170.1.171" >> /etc/network/interfaces echo "netmask 255.255.255.248" >> /etc/network/interfaces echo "" >> /etc/network/interfaces echo "auto eth1:2" >> /etc/network/interfaces echo "iface eth1:2 inet static" >> /etc/network/interfaces echo "address 108.170.1.172" >> /etc/network/interfaces echo "netmask 255.255.255.248" >> /etc/network/interfaces echo "" >> /etc/network/interfaces echo "auto eth1:3" >> /etc/network/interfaces echo "iface eth1:3 inet static" >> /etc/network/interfaces echo "address 108.170.1.173" >> /etc/network/interfaces echo "netmask 255.255.255.248" >> /etc/network/interfaces echo "" >> /etc/network/interfaces echo "auto eth1:4" >> /etc/network/interfaces echo "iface eth1:4 inet static" >> /etc/network/interfaces echo "address 108.170.1.174" >> /etc/network/interfaces echo "netmask 255.255.255.248" >> /etc/network/interfaces # All done here wget -T 30 -O /dev/null 'http://192.168.200.2/automation/completeKickstartInstallation.php?kickstartInstallationId=11232&securityKey=znjfijpschthrikeavpjtklzimaykruj' echo "Done"