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"/g' /etc/default/grub sudo update-grub wget -q -O /dev/null 'http://192.168.200.2/automation/completeKickstartInstallationStep.php?kickstartInstallationId=41439&securityKey=qitvlnrlwbhwplciopnncxxijurasurq&identifier=ubuntu14_04&percentComplete=50&message=Installing%20Software' # Install Software wget -q -O /dev/null 'http://192.168.200.2/automation/updateKickstartInstallationStatus.php?kickstartInstallationId=41439&securityKey=qitvlnrlwbhwplciopnncxxijurasurq&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=41439&securityKey=qitvlnrlwbhwplciopnncxxijurasurq&percentComplete=99&message=Completing%20Installation' # Configure Network echo "# Loopback" > /etc/network/interfaces2 echo "auto lo" >> /etc/network/interfaces2 echo "iface lo inet loopback" >> /etc/network/interfaces2 echo "" >> /etc/network/interfaces2 echo "# Backend Interface" >> /etc/network/interfaces2 echo "auto eth0" >> /etc/network/interfaces2 echo "iface eth0 inet static" >> /etc/network/interfaces2 echo "address 0.0.0.0" >> /etc/network/interfaces2 echo "netmask 255.255.255.255" >> /etc/network/interfaces2 echo "" >> /etc/network/interfaces2 echo "# Public Interfaces" >> /etc/network/interfaces2 echo "auto eth1" >> /etc/network/interfaces2 echo "iface eth1 inet static" >> /etc/network/interfaces2 echo "address 131.153.96.42" >> /etc/network/interfaces2 echo "netmask 255.255.255.248" >> /etc/network/interfaces2 echo "gateway 131.153.96.41" >> /etc/network/interfaces2 # Name Servers echo "dns-search securedservers.com" >> /etc/network/interfaces2 echo "dns-nameservers 174.138.175.115 174.138.175.116" >> /etc/network/interfaces2 # Startup script echo "mv /etc/network/interfaces2 /etc/network/interfaces" > /root/initializeNetwork.sh echo "service networking restart" >> /root/initializeNetwork.sh echo "ifdown --exclude=lo -a && sudo ifup --exclude=lo -a" >> /root/initializeNetwork.sh echo "mv /etc/rc.local.bu /etc/rc.local" >> /root/initializeNetwork.sh echo "rm /root/initializeNetwork.sh" >> /root/initializeNetwork.sh chmod +x /root/initializeNetwork.sh echo "" >> /etc/network/interfaces2 echo "auto eth1:1" >> /etc/network/interfaces2 echo "iface eth1:1 inet static" >> /etc/network/interfaces2 echo "address 131.153.96.43" >> /etc/network/interfaces2 echo "netmask 255.255.255.248" >> /etc/network/interfaces2 echo "" >> /etc/network/interfaces2 echo "auto eth1:2" >> /etc/network/interfaces2 echo "iface eth1:2 inet static" >> /etc/network/interfaces2 echo "address 131.153.96.44" >> /etc/network/interfaces2 echo "netmask 255.255.255.248" >> /etc/network/interfaces2 echo "" >> /etc/network/interfaces2 echo "auto eth1:3" >> /etc/network/interfaces2 echo "iface eth1:3 inet static" >> /etc/network/interfaces2 echo "address 131.153.96.45" >> /etc/network/interfaces2 echo "netmask 255.255.255.248" >> /etc/network/interfaces2 echo "" >> /etc/network/interfaces2 echo "auto eth1:4" >> /etc/network/interfaces2 echo "iface eth1:4 inet static" >> /etc/network/interfaces2 echo "address 131.153.96.46" >> /etc/network/interfaces2 echo "netmask 255.255.255.248" >> /etc/network/interfaces2 #this should blacklist the mei and mei_me modules as per ticket 848112 - #echo "\n#blacklisting the mei modules\n\n" >> /target/etc/modprobe.d/blacklist.conf #echo "blacklist mei" >> /target/etc/modprobe.d/blacklist.conf #echo "blacklist mei_me" >> /target/etc/modprobe.d/blacklist.conf # Add the startup script to firstboot cp /etc/rc.local /etc/rc.local.bu echo "#!/bin/sh -e" > /etc/rc.local echo "" >> /etc/rc.local echo "/root/initializeNetwork.sh" >> /etc/rc.local echo "exit 0" >> /etc/rc.local # All done here wget -T 30 -O /dev/null 'http://192.168.200.2/automation/completeKickstartInstallation.php?kickstartInstallationId=41439&securityKey=qitvlnrlwbhwplciopnncxxijurasurq' echo "Done"