Skip to content

Instantly share code, notes, and snippets.

@ecukalla
Created March 19, 2017 19:14
Show Gist options
  • Save ecukalla/b1169b2197d1e0ba6b8211a040ecffa6 to your computer and use it in GitHub Desktop.
Save ecukalla/b1169b2197d1e0ba6b8211a040ecffa6 to your computer and use it in GitHub Desktop.
Utilities
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Network information
network --bootproto=static --device=enp0s3 --gateway=10.0.2.2 --ip=10.0.2.15 --nameserver=8.8.4.4,8.8.8.8 --netmask=255.255.255.0 --noipv6 --activate
network --hostname=cent7
# Root password
rootpw --iscrypted $6$9JfbWPgltFWmO0dR$yXCcWhU1uMm0mAB25.FFKEH16pjhNPbtcOeyOnNS9MiObe90ecLxvaaqJ9K44dq4d/9HaoYl/oBxBmr7SgvWy.
# System services
services --enabled="chronyd"
# System timezone
timezone Europe/Tirane --isUtc --ntpservers=0.centos.pool.ntp.org,1.centos.pool.ntp.org,2.centos.pool.ntp.org,3.centos.pool.ntp.org
user --name=edmond --password=$6$V4huPnYcv1KCF5Is$uy.7BNXPoyyS226a6YH6nrHBmgPdqzGsP7.eIhgOqhqdA72Qf677rn6AdYW3x3cDpM5cAnLWDiy4Z0lgGCNMp1 --iscrypted --gecos="Edmond Cukalla"
# System bootloader configuration
bootloader --location=mbr --boot-drive=sda
# Partition clearing information
clearpart --none --initlabel
# Disk partitioning information
part /boot --fstype="xfs" --ondisk=sda --size=286
part pv.252 --fstype="lvmpv" --ondisk=sda --size=9844
volgroup cl --pesize=4096 pv.252
logvol /tmp --fstype="xfs" --size=953 --name=tmp --vgname=cl
logvol / --fstype="xfs" --size=953 --name=root --vgname=cl
logvol /var --fstype="xfs" --size=953 --name=var --vgname=cl
logvol swap --fstype="swap" --size=1907 --name=swap --vgname=cl
logvol /home --fstype="xfs" --size=953 --name=home --vgname=cl
logvol /opt --fstype="xfs" --size=1716 --name=opt --vgname=cl
logvol /usr --fstype="xfs" --size=2384 --name=usr --vgname=cl
%packages
@^minimal
@core
chrony
%end
%addon com_redhat_kdump --disable --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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment