1_prep.sh
#!/bin/bash
#Common Prep
#---------------------
yum update -y
yum install -y vim perl htop tree
#RHEL -- nmcli general hostname puppet.frankencloud.net
#AWSLinux -- perl -pi -e 's/HOSTNAME=localhost.localdomain/HOSTNAME=puppet.frankencloud.net/g' /etc/sysconfig/network
perl -pi -e 's/#PermitRootLogin yes/PermitRootLogin yes/g' /etc/ssh/sshd_config
perl -pi -e 's/ - set_hostname/# - set_hostname/g' /etc/cloud/cloud.cfg
perl -pi -e 's/ - update_hostname/# - update_hostname/g' /etc/cloud/cloud.cfg