Advertisement
cdonohoe

CentOS 7 Template

May 3rd, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. # Kickstart file for basic Scality servers
  2.  
  3. #version=DEVEL
  4. #########
  5. # Generic Options
  6. ###
  7. install
  8. url --url=http://mirrors.sonic.net/centos/7/os/x86_64/
  9. lang en_US.UTF-8
  10. keyboard us
  11. rootpw ScalTempP@$$
  12. firstboot --disabled
  13. authconfig --enableshadow --passalgo=sha512
  14. selinux --disabled
  15. bootloader --location=mbr --append="rhgb quiet crashkernel=auto"
  16. firewall --disabled
  17. timezone --utc America/Los_Angeles
  18.  
  19. ##########
  20. # Network Configuration Options
  21. ###
  22. # Static IP for the first interface. HOSTNAME, IP, GATEWAY, DNS are manually assigned.
  23. network --hostname store02 --onboot yes --device eth0 --bootproto static --ip 192.168.122.102 --netmask 255.255.255.0 --gateway 192.168.122.1 --ipv6 auto --nameserver 8.8.8.8
  24.  
  25. ##########
  26. # Disk Partitioning
  27. ###
  28. clearpart --all --initlabel
  29. zerombr
  30. ###
  31. # The partitioning below is for VMs. One partition for / and one for swap.
  32. ###
  33. part / --fstype="ext4" --grow --size=1
  34. part swap --recommended
  35. #part / --fstype=ext4 --size=20480 --ondisk=sdb
  36. #part /boot --asprimary --fstype=ext4 --size=4096 --ondisk=sdb
  37. #part /var --asprimary --fstype=ext4 --grow --size=32768 --ondisk=sdb
  38. #part swap --asprimary --size=16384 --ondisk=sdb
  39.  
  40. repo --name="CentOS" --baseurl=http://mirrors.sonic.net/centos/7/os/x86_64/ --cost=100
  41.  
  42. reboot
  43.  
  44. %packages
  45. @core
  46. openssh-clients
  47. ntp
  48. sos
  49. redhat-lsb-core
  50.  
  51. ##########
  52. # These are the optional packages recommended by Scality Engineering.
  53. # https://docs.scality.com/display/R51/Additional+Recommended+Packages
  54. bc
  55. bind-utils
  56. createrepo
  57. gdb
  58. lsof
  59. mtr
  60. parted
  61. pciutils
  62. perl-Config-Tiny
  63. rpmdevtools
  64. rsync
  65. screen
  66. vim-enhanced
  67. yum-utils
  68. dstat
  69. iotop
  70. net-snmp
  71. net-snmp-perl
  72. net-snmp-utils
  73. smartmontools
  74. strace
  75. tcpdump
  76. telnet
  77.  
  78. %end
  79.  
  80. %post --log=/root/ks-post.log
  81. echo "Writing hosts file..."
  82. cat > /etc/hosts << EOF
  83. 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
  84. ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
  85. 192.168.122.100 super01 supervisor salt
  86. 192.168.122.101 store01
  87. 192.168.122.102 store02
  88. 192.168.122.103 store03
  89. 192.168.122.104 store04
  90. 192.168.122.105 store05
  91. 192.168.122.106 store06
  92. EOF
  93. echo "done with hosts file"
  94. echo "turning on salt"
  95. yum -y install epel-release;
  96. yum -y install salt-minion;
  97. systemctl enable salt-minion.service;
  98. systemctl start salt-minion.service;
  99. echo "done with salt"
  100. # More Packages recommended by Scality Engineering that come from the epel repository that was just installed above.
  101. # ibmonitor and jnettop appear in the CentOS6/RHEL6 epel repository. They are not yet in the CENTOS7/RHEL7 epel repository.
  102. yum -y install htop iperf nsca-client perl-Crypt-Rijndael iperf3 iftop nrpe perl-Net-SNMP fio bonnie++ nagios-plugins-all
  103. systemctl enable ntpd.service;
  104. systemctl start ntpd.service;
  105. %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement