#version=DEVEL # System authorization information auth --enableshadow --passalgo=sha512 # Use network installation url --url="http://mirror.centos.org/altarch/7/os/ppc64le/" # Use text mode install text # Run the Setup Agent on first boot firstboot --enable ignoredisk --only-use=vda # Keyboard layouts keyboard --vckeymap=us --xlayouts='' # System language lang en_US.UTF-8 # Network information network --bootproto=dhcp --device=eth0 --ipv6=auto --activate network --hostname=localhost.localdomain # Root password rootpw --iscrypted $6$0kr.WtoI0BPRguza$TXklwXF.xLTIQZC5Zcy777QGTcTr35gb4k5Z4k6NIINOCpPUuAlL9tqhgSkqPbjgbI91X1L.36R3JpMtPBRE11 # System services services --enabled="chronyd" # Do not configure the X Window System skipx # System timezone timezone America/Chicago --isUtc user --groups=wheel --name=hamzy --password=$6$eib1e4pvujiOil5J$pVGMzzyj8Vdtk7K/KyC8Pe0f1pBCIAsqPCMtCc.cPV8DbHX7WqgU9Mgz/.xMhNWWgyVXEdgLFvZsSMbx1Ee8M1 --iscrypted # System bootloader configuration bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=vda autopart --type=lvm # Partition clearing information clearpart --all --initlabel --drives=vda %packages chrony @core kexec-tools screen tmux wget %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 --interpreter=/bin/bash --log=/root/anaconda-post.log # Post configure tasks set -x SSH_KEY="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDB3tqPZ0+JHRoIw6G7XkYyRZecacl96Qocv9+prfN4Hs3bt68yLY7nlfhwYHDc+WFABvwq/jwylsjamznb4XVs7ZWaiOMidYkeovH6x+E/Fy4u8WGc/KVdYvhcDg2XvH96ja3nIAbVW9fGZ2rdrRkqqSLNLXC7IWfhsQbG/wF5+ddunBg1hHpIuWS+xllgPQvd5O3iKRIqWPH6ZvR6dPx7gc8a+Rkjgqivgc6BERMfEtyQOwKxAHu9XX7w0ICTFOwuswyrRwOlW9piUnieHj6Yc/tpzpwmTr5TFTidQ/vmNdDJC/OKBifRYOeX54+RN7J2bPx66O1EcLdHLlh7c9qj hamzy@hamzy-tp-w540" for FILE in /root/.ssh/authorized_keys /home/hamzy/.ssh/authorized_keys do mkdir -p $(dirname ${FILE}) echo ${SSH_KEY} >> ${FILE} chmod 600 ${FILE} chmod 700 $(dirname ${FILE}) if [[ ${FILE} == */root/* ]] then chown root:root ${FILE} elif [[ ${FILE} == */hamzy/* ]] chown hamzy:hamzy ${FILE} fi done echo "hamzy ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/hamzy yum install -y epel-release yum install -y ansible %end