Added variables for user and group to apache configs, commented out UserDir.
This commit is contained in:
parent
95d3d822d6
commit
9c853fa445
3 changed files with 40 additions and 8 deletions
|
@ -38,8 +38,22 @@ class apache::common {
|
|||
|
||||
# Configure HTTP server.
|
||||
#
|
||||
# === Global variables
|
||||
#
|
||||
# $httpd_user:
|
||||
# User httpd runs as. Defaults to apache.
|
||||
# $httpd_group:
|
||||
# Group httpd runs as. Defaults to apache.
|
||||
#
|
||||
class apache::server inherits apache::common {
|
||||
|
||||
if ! $httpd_user {
|
||||
$httpd_user = "apache"
|
||||
}
|
||||
if ! $httpd_group {
|
||||
$httpd_group = "apache"
|
||||
}
|
||||
|
||||
file { [ "/etc/httpd/conf.http.d",
|
||||
"/etc/httpd/site.http.d",
|
||||
"/srv/www/http",
|
||||
|
@ -147,8 +161,22 @@ define apache::site($root="", $config="") {
|
|||
|
||||
# Configure HTTPS server.
|
||||
#
|
||||
# === Global variables
|
||||
#
|
||||
# $httpsd_user:
|
||||
# User httpsd runs as. Defaults to httpsd.
|
||||
# $httpsd_group:
|
||||
# Group httpsd runs as. Defaults to httpsd.
|
||||
#
|
||||
class apache::sslserver inherits apache::common {
|
||||
|
||||
if ! $httpsd_user {
|
||||
$httpsd_user = "httpsd"
|
||||
}
|
||||
if ! $httpsd_group {
|
||||
$httpsd_group = "httpsd"
|
||||
}
|
||||
|
||||
package { "mod_ssl":
|
||||
ensure => installed
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue