apache: Create httpsd user and group if no other user is defined for sslserver.
This commit is contained in:
parent
1ee9bf0105
commit
b1c7a02568
1 changed files with 4 additions and 0 deletions
|
@ -225,6 +225,8 @@ define apache::site($aliases="", $root="", $redirect="", $proxy="") {
|
|||
#
|
||||
class apache::sslserver inherits apache::common {
|
||||
|
||||
include user::system
|
||||
|
||||
case $::operatingsystem {
|
||||
"debian","ubuntu": {
|
||||
include apache::debian::sslserver
|
||||
|
@ -232,11 +234,13 @@ class apache::sslserver inherits apache::common {
|
|||
"centos","redhat","fedora": {
|
||||
if ! $httpsd_user {
|
||||
$user = "httpsd"
|
||||
realize(User["httpsd"])
|
||||
} else {
|
||||
$user = $httpsd_user
|
||||
}
|
||||
if ! $httpsd_group {
|
||||
$group = "httpsd"
|
||||
realize(Group["httpsd"])
|
||||
} else {
|
||||
$group = $httpsd_group
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue