Migrated $httpd_user, $httpd_group, $httpsd_user and $httpsd_group variables to use format $apache::server::{user,group} and $apache::sslserver::{user,group}.

This commit is contained in:
Timo Mkinen 2011-02-25 11:46:57 +02:00
parent 61b1501079
commit e3b6cca7a4
5 changed files with 38 additions and 20 deletions

View file

@ -90,9 +90,29 @@ class apache::server inherits apache::common {
case $operatingsystem {
debian,ubuntu: {
if ! $httpd_user {
$user = "www-data"
} else {
$user = $httpd_user
}
if ! $httpd_group {
$group = "www-data"
} else {
$group = $httpd_group
}
include apache::debian::server
}
centos,fedora: {
if ! $httpd_user {
$user = "apache"
} else {
$user = $httpd_user
}
if ! $httpd_group {
$group = "apache"
} else {
$group = $httpd_group
}
include apache::redhat::server
}
default: {
@ -174,9 +194,21 @@ class apache::sslserver inherits apache::common {
case $operatingsystem {
debian,ubuntu: {
$user = "www-data"
$group = "www-data"
include apache::debian::sslserver
}
centos,fedora: {
if ! $httpsd_user {
$user = "httpsd"
} else {
$user = $httpsd_user
}
if ! $httpsd_group {
$group = "httpsd"
} else {
$group = $httpsd_group
}
include apache::redhat::sslserver
}
default: {