Last active
August 29, 2015 14:25
-
-
Save equelin/4dcda9f85f3c7e2ccb93 to your computer and use it in GitHub Desktop.
prep_centos_rhel_6.X_part1
This file contains 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
# Désactivation logs le temps de la préparation du template | |
/sbin/service rsyslog stop | |
/sbin/service auditd stop | |
# Désactivation SELINUX (optionnel) | |
/usr/sbin/setenforce 0 | |
sed -i -e 's!^SELINUX=.*!SELINUX=disabled!' /etc/selinux/config | |
# Désactivation IPTABLES (optionnel) | |
/sbin/service iptables stop | |
/sbin/service ip6tables stop | |
/sbin/chkconfig iptables off | |
/sbin/chkconfig ip6tables off | |
# Préparation installation des VMware Tools | |
rpm --import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub | |
rpm --import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub | |
cat << EOF > /etc/yum.repos.d/vmware-tools.repo | |
[vmware-tools] | |
name=VMware Tools | |
baseurl = http://packages.vmware.com/tools/esx/latest/rhel6/\$basearch | |
enabled = 1 | |
gpgcheck = 1 | |
EOF | |
# Mise à jour globale de l'OS | |
yum update -y | |
# Installation packages WGET, NTPD et YUM-UTILS (pour package-cleanup) et VMware Tools | |
yum install -y ntp yum-utils vmware-tools-esx-nox | |
# Démarrage service NTPD | |
/sbin/service ntpd start | |
/sbin/chkconfig ntpd on | |
# Redémarrage de l'OS | |
shutdown -r now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment