puppet: Initial support for Passenger on Apache
This commit is contained in:
parent
e8251bae66
commit
2e3a2e5782
4 changed files with 98 additions and 5 deletions
|
@ -1,12 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
apache|webrick)
|
||||
apache|passenger|webrick)
|
||||
SERVER=$1
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "usage: $0 apache|webrick" 1>&2
|
||||
echo "usage: $0 apache|passenger|webrick" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
@ -56,8 +56,8 @@ EOF
|
|||
include yum::repo::epel
|
||||
|
||||
EOF
|
||||
if [ "${SERVER}" = "apache" ]; then
|
||||
cat >> /etc/puppet/manifests/node/${FQDN}.pp << EOF
|
||||
if [ "${SERVER}" = "apache" -o "${SERVER}" = "passenger" ]; then
|
||||
cat >> /etc/puppet/manifests/node/${FQDN}.pp << EOF
|
||||
include user::system
|
||||
realize(User["httpsd"], Group["httpsd"])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue