Advertisement
cdonohoe

CentOS 6 Template

May 3rd, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 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/6.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. #bootloader --location=mbr --driveorder=vda --append="crashkernel=auto console=ttyS0,115200"
  17. firewall --disabled
  18. timezone --utc America/Los_Angeles
  19.  
  20. ##########
  21. # Network Configuration Options
  22. ###
  23. # 1. DHCP for the first interface.
  24. #network --onboot yes --device eth0 --bootproto dhcp
  25. ###
  26. # 2. Static IP for the first interface. HOSTNAME, IP, GATEWAY, DNS are manually assigned.
  27. network --hostname store01 --onboot yes --device eth0 --bootproto static --ip 192.168.122.101 --netmask 255.255.255.0 --gateway 192.168.122.1 --ipv6 auto --nameserver 8.8.8.8
  28. ###
  29. # 3. Bonded interfaces. This may require knowledge of the hardware type.
  30. #
  31. ##########
  32.  
  33. ##########
  34. # Disk Partitioning
  35. ###
  36. clearpart --all --initlabel
  37. zerombr
  38. ###
  39. # The partitioning options will require knowledge of the hardware. The ondisk option will inevitably change between server models.
  40. ###
  41. part / --fstype="ext4" --grow --size=1
  42. part swap --recommended
  43. #part / --fstype=ext4 --size=20480 --ondisk=sdb
  44. #part /boot --asprimary --fstype=ext4 --size=4096 --ondisk=sdb
  45. #part /var --asprimary --fstype=ext4 --grow --size=32768 --ondisk=sdb
  46. #part swap --asprimary --size=16384 --ondisk=sdb
  47.  
  48. repo --name="CentOS" --baseurl=http://mirrors.sonic.net/centos/6.7/os/x86_64/ --cost=100
  49.  
  50. reboot
  51.  
  52. %packages
  53. @core
  54. openssh-clients
  55. redhat-lsb-core
  56.  
  57. ##########
  58. # These are the optional packages recommended by Scality Engineering.
  59. # https://docs.scality.com/display/R51/Additional+Recommended+Packages
  60. bc
  61. bind-utils
  62. createrepo
  63. gdb
  64. lsof
  65. mtr
  66. parted
  67. pciutils
  68. perl-Config-Tiny
  69. rpmdevtools
  70. rsync
  71. screen
  72. vim-enhanced
  73. yum-utils
  74. dstat
  75. iotop
  76. net-snmp
  77. net-snmp-perl
  78. net-snmp-utils
  79. smartmontools
  80. strace
  81. tcpdump
  82. telnet
  83.  
  84. %end
  85.  
  86. %post --log=/root/ks-post.log
  87. echo "Writing hosts file..."
  88. cat > /etc/hosts << EOF
  89. 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
  90. ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
  91. 192.168.122.100 super01 supervisor salt
  92. 192.168.122.101 store01
  93. 192.168.122.102 store02
  94. 192.168.122.103 store03
  95. 192.168.122.104 store04
  96. 192.168.122.105 store05
  97. 192.168.122.106 store06
  98. EOF
  99. echo "done with hosts file"
  100. echo "turning on salt"
  101. yum -y install epel-release;
  102. yum -y install salt-minion;
  103. chkconfig salt-minion on;
  104. service salt-minion restart;
  105. echo "done with salt"
  106. # More Packages recommended by Scality Engineering that come from the epel repository that was just installed above.
  107. yum -y install ibmonitor htop iperf nsca-client jnettop perl-Crypt-Rijndael iperf3 iftop nrpe perl-Net-SNMP fio bonnie++ nagios-plugins-all
  108. chkconfig ntpd on;
  109. service ntpd start;
  110. %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement