bootstrap.sh 609 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. rm /etc/localtime
  3. ln -s /usr/share/zoneinfo/Europe/London /etc/localtime
  4. setenforce 0
  5. sed -i "s/SELINUX=enforcing/SELINUX=permissive/g" /etc/sysconfig/selinux
  6. yum update -y && yum clean all
  7. yum install -y tcpdump krb5-server krb5-workstation httpd mod_auth_kerb mod_ssl ntp vim net-tools
  8. systemctl stop firewalld
  9. systemctl disable firewalld
  10. systemctl enable ntpd
  11. cat <<EOF >> /etc/sysctl.conf
  12. net.ipv6.conf.all.disable_ipv6 = 1
  13. net.ipv6.conf.default.disable_ipv6 = 1
  14. net.ipv6.conf.lo.disable_ipv6 = 1
  15. EOF
  16. echo "10.80.88.89 client.test.gokrb5" >> /etc/hosts
  17. sh /vagrant/kdc-setup.sh
  18. reboot