#version=RHEL7 # System authorization information auth --enableshadow --passalgo=sha512 # Use CDROM installation media cdrom # 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=dhcp --device=ens33 --onboot=off --ipv6=auto network --hostname=localhost.localdomain # Root password rootpw --iscrypted $6$HE0ijvKsc9i1dcZN$2AUkd3tDZtNDODuc0HF3pYG3XyysFbmNuDis.uTngqTk6JYN.uuC1LXhZm6NdZ.oVAlSNF6vx6ISf.VTUhaLO/ # System timezone timezone America/New_York --isUtc user --name=biff --password=$6$R5wlQA79mwG4BIBJ$nlUt.WJmNhSIrmrbFlubfCJ8.PolY5w86G3SxUjq459zRmMvobDqcRnIQMeCDiA0qiCRx4t38.cE2CoIpoapL1 --iscrypted --gecos="biff" # X Window System configuration information xconfig --startxonboot # System bootloader configuration bootloader --location=mbr --boot-drive=sda # Partition clearing information clearpart --all --drives=sda --initlabel part /boot --fstype=xfs --asprimary --size=1024 --ondisk=sda part swap --fstype swap --asprimary --size=2048 --ondisk=sda part / --fstype=xfs --asprimary --size=15360 --ondisk=sda part /space1 --fstype=xfs --size=100 --ondisk=sda part /space2 --fstype=xfs --size=100 --ondisk=sda part /space3 --fstype=xfs --size=100 --ondisk=sda part /space4 --fstype=xfs --size=100 --ondisk=sda part /space5 --fstype=xfs --size=100 --ondisk=sda %packages @additional-devel @base @compat-libraries @core @debugging @desktop-debugging @development @dial-up @directory-client @fonts @gnome-apps @gnome-desktop @guest-desktop-agents @input-methods @internet-applications @internet-browser @java-platform @mariadb @multimedia @network-file-system-client @performance @perl-runtime @perl-web @print-client @python-web @ruby-runtime @virtualization-client @virtualization-hypervisor @virtualization-tools @web-server @web-servlet @x11 %end %post ################################# # set up yum repositories ################################# mkdir -p /etc/yum.repos.d/backup if [ $? -ne 0 ] then echo "FAILED creating backup directory for default repos" else mv -f /etc/yum.repos.d/*repo /etc/yum.repos.d/backup if [ $? -ne 0 ] then echo "FAILED moving default repos to backup staging" fi fi cd /etc/yum.repos.d wget http://192.168.0.254/classroom.repo chmod 666 classroom.repo %end