Skip to content

Instantly share code, notes, and snippets.

@cgimeno
Created April 5, 2017 21:06
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 cgimeno/e44c1e97eb223e5df030c3381e2018f4 to your computer and use it in GitHub Desktop.
Save cgimeno/e44c1e97eb223e5df030c3381e2018f4 to your computer and use it in GitHub Desktop.
Kickstart example file
#version=DEVEL
# System authorization information
install
nfs --server 172.16.64.11 --dir /opt/centos/
auth --enableshadow --passalgo=sha512
# Use Network Install
logging --level=info
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=es --xlayouts='es'
# System language
lang en_US.UTF-8
selinux --disabled
firewall --disabled
# Network information
network --bootproto=static --device=bond0 --ip=172.16.64.20 --netmask=255.255.252.0 --ipv6=auto --activate --bondslaves=enp4s0f1,enp4s0f0 --bondopts=miimon=1,updelay=0,downdelay=0,mode=balance-xor
network --bootproto=static --device=bond0 --gateway=172.16.48.1 --ip=172.16.48.20 --nameserver=172.16.20.1 --netmask=255.255.252.0 --ipv6=auto --activate --vlanid=140 --interfacename=vlan140
network --hostname=your_hostname
network --device=enp4s0f0 --onboot=no
# Root password
rootpw --iscrypted crypted_password
# System services
services --disabled="chronyd"
# System timezone
timezone Europe/Madrid --isUtc --nontp
user --groups=wheel --name=username --password=crypted_password --iscrypted --gecos="username"
# System bootloader configuration
zerombr
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
autopart --type=lvm
# Partition clearing information
clearpart --all --initlabel --drives=sda
%packages
@^minimal
@core
# Add here additional packages
kexec-tools
wget
chrony
%end
%addon com_redhat_kdump --enable --reserve-mb='auto'
%end
%anaconda
pwpolicy root --minlen=6 --minquality=50 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=50 --notstrict --nochanges --notempty
pwpolicy luks --minlen=6 --minquality=50 --notstrict --nochanges --notempty
%end
%post
# Your Own Post-install script.
%end
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment