Skip to content

Instantly share code, notes, and snippets.

@mnathani
Created July 29, 2017 19:30
Show Gist options
  • Save mnathani/0deb876b8f64edb0238605f1e1fa58cb to your computer and use it in GitHub Desktop.
Save mnathani/0deb876b8f64edb0238605f1e1fa58cb to your computer and use it in GitHub Desktop.
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Install OS instead of upgrade
install
eula --agreed
reboot
url --url="http://mirror.centos.org/centos/7/os/x86_64"
method="http://mirror.centos.org/centos/7/os/x86_64"
# Keyboard layouts
keyboard 'us'
# Root password
rootpw --iscrypted $1ENCRYPTED
# System language
lang en_US
firstboot --enable
ignoredisk --only-use=sda
# Firewall configuration
firewall --disabled
# System authorization information
auth --useshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
graphical
# SELinux configuration
selinux --disabled
# Do not configure the X Window System
skipx
%packages
@base
@core
epel-release
git
vim
tmux
gcc
openvpn
easy-rsa
weechat
%end
services --enabled=NetworkManager,sshd
# Network information
network --bootproto=static --device=eth0 --gateway=192.168.64.1 --ip=192.168.64.200 --nameserver=8.8.8.8 --netmask=255.255.255.240
# Reboot after installation
# System timezone
timezone America/Toronto
# System bootloader configuration
bootloader --location=mbr --boot-drive=sda
autopart --type=lvm
zerombr
# Partition clearing information
clearpart --all --drives=sda
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment