Created
November 1, 2015 23:58
-
-
Save ryancurrah/924e7806cd7609cd97db to your computer and use it in GitHub Desktop.
kc.cfg
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
# We want to "install" | |
install | |
cdrom | |
# Set the language | |
lang en_US.UTF-8 | |
keyboard us | |
network --bootproto=dhcp | |
# Sets the root password because we do not want any prompt during installation (password) | |
rootpw changeme | |
firewall --enabled --service=ssh | |
authconfig --enableshadow --passalgo=sha512 | |
selinux --disabled | |
timezone UTC | |
bootloader --location=mbr | |
text | |
skipx | |
zerombr | |
clearpart --all --initlabel | |
autopart | |
auth --useshadow --enablemd5 | |
firstboot --disabled | |
reboot | |
# install only base packages and openssh | |
%packages --nobase | |
@core | |
openssh-clients | |
%end | |
%post | |
/usr/bin/yum -y install sudo | |
/usr/sbin/groupadd packer | |
/usr/sbin/useradd packer -g packer -G wheel | |
echo "packer"|passwd --stdin packer | |
echo "packer ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/packer | |
chmod 0440 /etc/sudoers.d/packer | |
%end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment