diff --git a/puppet/bootstrap-server.sh b/puppet/bootstrap-server.sh index 775631b..35e720c 100755 --- a/puppet/bootstrap-server.sh +++ b/puppet/bootstrap-server.sh @@ -51,12 +51,18 @@ node "${FQDN}" { EOF - if [ "${SERVER}" = "apache" -a -f /etc/redhat-release ]; then + if [ -f /etc/redhat-release ]; then + cat >> /etc/puppet/manifests/node/${FQDN}.pp << EOF + include yum::repo::epel + +EOF + if [ "${SERVER}" = "apache" ]; then cat >> /etc/puppet/manifests/node/${FQDN}.pp << EOF include user::system realize(User["httpsd"], Group["httpsd"]) EOF + fi fi cat >> /etc/puppet/manifests/node/${FQDN}.pp << EOF