From 50bc96ceea03bd1603cd107dcfac2861fc4037b8 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Fri, 20 Apr 2012 13:41:28 +0300 Subject: [PATCH] Added epel to puppetmaster bootstrap script --- puppet/bootstrap-server.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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