Created
April 7, 2016 13:54
-
-
Save blackknight36/0a6e665ea31adcb97329e46f08ae1d9a to your computer and use it in GitHub Desktop.
This file contains 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
# System authorization information | |
install | |
# Use network installation | |
url --url="http://server.example.com/ftp/pub/fedora/23/Everything/x86_64/os" | |
auth --enableshadow --passalgo=sha512 | |
# Disable setup agent | |
firstboot --disable | |
# Keyboard layouts | |
keyboard --vckeymap=us --xlayouts='us' | |
# System language | |
lang en_US.UTF-8 | |
# SELinux configuration | |
selinux --enforcing | |
# System timezone | |
timezone America/New_York --isUtc | |
# X Window System configuration information | |
xconfig --startxonboot | |
# Enable firewall with ssh allowed | |
firewall --enable --service=ssh | |
# Include disk partitioning info from /tmp/part-include | |
%include /tmp/part-include | |
%pre | |
if [ -b "/dev/sda" ]; then | |
rootdisk="sda" | |
elif [ -b "/dev/vda" ]; then | |
rootdisk="vda" | |
fi | |
cat << EOF > /tmp/part-include | |
ignoredisk --only-use=${rootdisk} | |
zerombr | |
clearpart --all --drives=${rootdisk} --initlabel | |
bootloader --location=mbr --boot-drive=${rootdisk} | |
# Disk partitioning information | |
part /boot --fstype="ext4" --onpart=${rootdisk}1 --label=/boot --size=2048 | |
part pv.11 --fstype="lvmpv" --onpart=${rootdisk}2 --size=1 --grow | |
volgroup fedora-ws pv.11 | |
logvol / --fstype="xfs" --name=root --vgname=fedora-ws --size=40960 | |
logvol swap --fstype="swap" --name=swap --vgname=fedora-ws --size=8192 | |
logvol /usr --fstype="xfs" --name=usr --vgname=fedora-ws --size=30720 | |
logvol /var --fstype="xfs" --name=var --vgname=fedora-ws --size=30720 | |
logvol /tmp --fstype="xfs" --name=tmp --vgname=fedora-ws --size=4096 | |
%end | |
%post | |
dnf -y install puppet git | |
# IP for Puppet 4 master | |
echo "192.168.0.5 host.example.com" >> /etc/hosts | |
%end | |
%packages | |
@workstation-product | |
@development-tools | |
@hardware-support | |
@multimedia | |
@networkmanager-submodules | |
@printing | |
@LibreOffice | |
@c-development | |
@rpm-development-tools | |
@editors | |
-initial-setup | |
-initial-setup-gui | |
-gnome-initial-setup | |
%end | |
%addon com_redhat_kdump --disable --reserve-mb='128' | |
%end | |
%anaconda | |
pwpolicy root --minlen=6 --minquality=50 --notstrict --nochanges --emptyok | |
pwpolicy user --minlen=6 --minquality=50 --notstrict --nochanges --emptyok | |
pwpolicy luks --minlen=6 --minquality=50 --notstrict --nochanges --emptyok | |
%end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment