Skip to content

Instantly share code, notes, and snippets.

@jngd
Created July 13, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jngd/d436050371177b558efb to your computer and use it in GitHub Desktop.
Save jngd/d436050371177b558efb to your computer and use it in GitHub Desktop.
Kickstart simple file
#kickstart file for basic CentOS network installation
install
lang en_US.UTF-8
keyboard us
network --bootproto=dhcp --device=eth0 --gateway=192.168.122.1 --hostname=centos7 --nameserver=192.168.122.1
# packages location
url --url=http://isoredirect.centos.org/centos/7/os/x86_64/
rootpw --iscrypted sh7.LUOelWgXU
# where password above is created with "python -c 'import crypt; print(crypt.crypt("mypassword", "sha256sum"))'"
# one can alter "mypassword" and sha256sum ( valid are md5sum sha1sum sha224sum sha256sum sha384sum sha512sum shasum )
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512 --enablefingerprint
selinux --enforcing
timezone --utc Europe/Prague
bootloader --location=mbr
#disk part
clearpart --all --initlabel
part / --fstype=xfs --asprimary --size=4500
# To include /var partition
part /var --fstype=xfs --size=500
part /one --fstype=ext4 --size=400
part /two --fstype=ext4 --size=400
part /xfs --fstype=ext4 --size=400
part swap --size=300 --asprimary
# packages we want to install, in my case I do minimal installation due to speed
%packages
@base
@core
@network-file-system-client
@emacs
emacs
chrony
createrepo
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment