#/bin/sh

set -x

echo
echo "################################"
echo "# Running Post Configuration   #"
echo "################################"

echo "%wheel        ALL=(ALL)       NOPASSWD: ALL" > /etc/sudoers.d/wheel-nopasswd

echo "IP Address of this system: \4" >> /etc/issue
#ip addr | grep 'inet ' | grep -v ' lo' | awk '{print $2}' >> /etc/issue
echo >> /etc/issue


curl -q -o /etc/bashrc                          http://pxe.dmmp.me/templates/bashrc
curl -q -o /etc/ssh/sshd_config                 http://pxe.dmmp.me/templates/sshd_config
curl -q -o /etc/cron.hourly/99-security-updates http://pxe.dmmp.me/templates/99-security-updates
chmod 0755 /etc/cron.hourly/99-security-updates
curl -q -o /etc/yum.repos.d/CentOS-plentystars.repo https://repo.dmmp.me/CentOS-plentystars.repo 

yum install -y epel-release
yum install bash-completion
