Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Kickstart file for basic Scality servers
- #version=DEVEL
- #########
- # Generic Options
- ###
- install
- url --url=http://mirrors.sonic.net/centos/7/os/x86_64/
- lang en_US.UTF-8
- keyboard us
- rootpw ScalTempP@$$
- firstboot --disabled
- authconfig --enableshadow --passalgo=sha512
- selinux --disabled
- bootloader --location=mbr --append="rhgb quiet crashkernel=auto"
- firewall --disabled
- timezone --utc America/Los_Angeles
- ##########
- # Network Configuration Options
- ###
- # Static IP for the first interface. HOSTNAME, IP, GATEWAY, DNS are manually assigned.
- 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
- ##########
- # Disk Partitioning
- ###
- clearpart --all --initlabel
- zerombr
- ###
- # The partitioning below is for VMs. One partition for / and one for swap.
- ###
- part / --fstype="ext4" --grow --size=1
- part swap --recommended
- #part / --fstype=ext4 --size=20480 --ondisk=sdb
- #part /boot --asprimary --fstype=ext4 --size=4096 --ondisk=sdb
- #part /var --asprimary --fstype=ext4 --grow --size=32768 --ondisk=sdb
- #part swap --asprimary --size=16384 --ondisk=sdb
- repo --name="CentOS" --baseurl=http://mirrors.sonic.net/centos/7/os/x86_64/ --cost=100
- reboot
- %packages
- @core
- openssh-clients
- ntp
- sos
- redhat-lsb-core
- ##########
- # These are the optional packages recommended by Scality Engineering.
- # https://docs.scality.com/display/R51/Additional+Recommended+Packages
- bc
- bind-utils
- createrepo
- gdb
- lsof
- mtr
- parted
- pciutils
- perl-Config-Tiny
- rpmdevtools
- rsync
- screen
- vim-enhanced
- yum-utils
- dstat
- iotop
- net-snmp
- net-snmp-perl
- net-snmp-utils
- smartmontools
- strace
- tcpdump
- telnet
- %end
- %post --log=/root/ks-post.log
- echo "Writing hosts file..."
- cat > /etc/hosts << EOF
- 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
- ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
- 192.168.122.100 super01 supervisor salt
- 192.168.122.101 store01
- 192.168.122.102 store02
- 192.168.122.103 store03
- 192.168.122.104 store04
- 192.168.122.105 store05
- 192.168.122.106 store06
- EOF
- echo "done with hosts file"
- echo "turning on salt"
- yum -y install epel-release;
- yum -y install salt-minion;
- systemctl enable salt-minion.service;
- systemctl start salt-minion.service;
- echo "done with salt"
- # More Packages recommended by Scality Engineering that come from the epel repository that was just installed above.
- # ibmonitor and jnettop appear in the CentOS6/RHEL6 epel repository. They are not yet in the CENTOS7/RHEL7 epel repository.
- yum -y install htop iperf nsca-client perl-Crypt-Rijndael iperf3 iftop nrpe perl-Net-SNMP fio bonnie++ nagios-plugins-all
- systemctl enable ntpd.service;
- systemctl start ntpd.service;
- %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement