Last active
September 6, 2020 11:08
-
-
Save sierra-tango-echo/9ab3aec3b470432178618122319f5633 to your computer and use it in GitHub Desktop.
azuretest1.bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xfs_resize / | |
echo 'ZONE="Europe/London"' > /etc/sysconfig/clock | |
ln -snf /usr/share/zoneinfo/Europe/London /etc/localtime | |
yum -y install ntpdate | |
yum -y install vim | |
cat << "EOF" > /etc/profile.d/flightcenter.sh | |
#Custom PS1 with client name | |
[ -f /etc/flightcentersupported ] && c=32 || c=31 | |
if [ "$PS1" ]; then | |
PS1="[\u@\h\[\e[1;${c}m\][cfdhpc1-cloud2]\[\e[0m\] \W]\\$ " | |
fi | |
EOF | |
touch /etc/flightcentersupported | |
cat << EOF > /etc/hosts | |
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 | |
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 | |
EOF | |
cat << EOF > /etc/resolv.conf | |
search cloud2.pri.cfdhpc1.alces.network pri.cfdhpc1.alces.network cfdhpc1.alces.network | |
nameserver 10.110.1.200 | |
EOF | |
echo 'GATEWAY=10.110.1.200' >> /etc/sysconfig/network-scripts/ifcfg-eth0 | |
echo 'PEERDNS=no' >> /etc/sysconfig/network-scripts/ifcfg-eth0 | |
echo 'PEERROUTES=no' >> /etc/sysconfig/network-scripts/ifcfg-eth0 | |
systemctl disable NetworkManager | |
systemctl mask NetworkManager | |
systemctl stop NetworkManager | |
touch /etc/cloud/cloud-init.disabled | |
systemctl disable cloud-init | |
systemctl disable cloud-config | |
systemctl disable cloud-final | |
systemctl disable cloud-init-local | |
firewall-cmd --remove-interface eth0 --zone public | |
firewall-cmd --remove-interface eth0 --zone public --permanent | |
firewall-cmd --add-interface eth0 --zone trusted --permanent | |
firewall-cmd --add-interface eth0 --zone trusted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment