Created
January 25, 2018 05:58
-
-
Save geoHeil/e4944088c5350835672279ec3e7edd0b to your computer and use it in GitHub Desktop.
full kickstart
This file contains hidden or 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
install | |
cdrom | |
lang en_US.UTF-8 | |
keyboard de | |
network --bootproto=dhcp --ipv6=auto --activate | |
rootpw --plaintext vagrant | |
firewall --disabled | |
authconfig --enableshadow --passalgo=sha512 | |
selinux --disabled | |
timezone Europe/Vienna | |
unsupported_hardware | |
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet" | |
text | |
skipx | |
zerombr | |
clearpart --all --initlabel --drives=sda | |
auth --enableshadow --passalgo=sha512 --kickstart | |
# Make the volgroup | |
volgroup VolGroup --pesize=4096 pv.008002 | |
# Setup swap on the volgroup | |
logvol swap --name=lv_swap --vgname=VolGroup --size=2016 --maxsize=2016 | |
# Make / on the volgroup | |
logvol / --name=lv_root --vgname=VolGroup --fstype=ext4 --grow --size=1 | |
# Setup the boot partition on the volgroup | |
part /boot --fstype=ext4 --size=500 | |
auth --useshadow --enablesha512 | |
firstboot --disabled | |
reboot --eject | |
user --name=vagrant --plaintext --password vagrant | |
%packages --nobase --ignoremissing --excludedocs | |
# vagrant needs this to copy initial files via scp | |
openssh-clients | |
sudo | |
kernel-headers | |
kernel-devel | |
gcc | |
make | |
perl | |
wget | |
nfs-utils | |
net-tools | |
bzip2 | |
kernel-devel | |
kernel-headers | |
ntp | |
openssl-devel | |
gcc-c++ | |
git | |
java-1.8.0-openjdk | |
tar | |
deltarpm | |
-fprintd-pam | |
-intltool | |
# unnecessary firmware | |
-aic94xx-firmware | |
-atmel-firmware | |
-b43-openfwwf | |
-bfa-firmware | |
-ipw2100-firmware | |
-ipw2200-firmware | |
-ivtv-firmware | |
-iwl100-firmware | |
-iwl105-firmware | |
-iwl135-firmware | |
-iwl1000-firmware | |
-iwl2000-firmware | |
-iwl2030-firmware | |
-iwl3160-firmware | |
-iwl3945-firmware | |
-iwl4965-firmware | |
-iwl5000-firmware | |
-iwl5150-firmware | |
-iwl6000-firmware | |
-iwl6000g2a-firmware | |
-iwl6000g2b-firmware | |
-iwl6050-firmware | |
-iwl7260-firmware | |
-iwl7265-firmware | |
-libertas-usb8388-firmware | |
-libertas-sd8686-firmware | |
-libertas-sd8787-firmware | |
-ql2100-firmware | |
-ql2200-firmware | |
-ql23xx-firmware | |
-ql2400-firmware | |
-ql2500-firmware | |
-rt61pci-firmware | |
-rt73usb-firmware | |
-xorg-x11-drv-ati-firmware | |
-zd1211-firmware | |
-alsa-tools-firmware | |
-alsa-firmware | |
-kernel-firmware | |
%end | |
%post | |
# sudo | |
echo "%vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant | |
############################################ | |
# hdp basics | |
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers | |
JAVA_HOME=/lib/jvm/java-openjdk/ | |
echo export JAVA_HOME="${JAVA_HOME}">/etc/profile.d/javaenv.sh | |
chmod 0755 /etc/profile.d/javaenv.sh | |
# Set current Java version in /usr/java/default | |
# this is required by the Presto RPM | |
mkdir -p /usr/java | |
ln -s /usr/lib/jvm/java /usr/java/default | |
# enabling yum fastcache | |
echo '******* enabling yum fastcache' | |
yum makecache fast | |
# clean yum | |
echo '******* cleaning yum' | |
yum clean all | |
# update all yum libraries | |
echo '******* updating all libraries' | |
yum update -y | |
# start ntp as required by HDP | |
echo '******* installing ntp' | |
systemctl start ntpd | |
systemctl enable ntpd | |
# disable transparent huge pages as required by HDP | |
echo '******* disabling transparent huge pages' | |
echo never > /sys/kernel/mm/transparent_hugepage/enabled | |
echo '******* update ulimit' | |
ulimit -n 10000 | |
echo '******* update umask' | |
echo umask 0022 >> /etc/profile | |
############################################ | |
#Enable hyper-v daemons only if using hyper-v virtualization | |
if [ $(virt-what) == "hyperv" ]; then | |
yum -y install hyperv-daemons cifs-utils | |
systemctl enable hypervvssd | |
systemctl enable hypervkvpd | |
fi | |
%end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
based on https://github.com/chef/bento