Skip to content

Commit

Permalink
Updating $group to use the same convention as $wwwuser.
Browse files Browse the repository at this point in the history
  • Loading branch information
0x570x690x6c0x6c authored and efroese-figma committed Jul 12, 2012
1 parent 2899c17 commit baefda8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions manifests/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$cgibin=true,
$user="",
$admin="",
$group="root",
$group="",
$mode=2570,
$aliases=[],
$enable_default=true,
Expand All @@ -25,6 +25,11 @@
default => $user,
}

$wwwgroup = $group ? {
"" => $apache::params::group,
default => $group,
}

# used in ERB templates
$wwwroot = $apache::params::root

Expand Down Expand Up @@ -94,7 +99,7 @@
"" => $wwwuser,
default => $admin,
},
group => $group,
group => $wwwgroup,
mode => $mode,
seltype => $::operatingsystem ? {
redhat => "httpd_config_t",
Expand All @@ -107,7 +112,7 @@
file { "${apache::params::root}/${name}/htdocs":
ensure => directory,
owner => $wwwuser,
group => $group,
group => $wwwgroup,
mode => $mode,
seltype => $::operatingsystem ? {
redhat => "httpd_sys_content_t",
Expand Down Expand Up @@ -142,7 +147,7 @@
default => undef, # don't manage this directory unless under $root/$name
},
owner => $wwwuser,
group => $group,
group => $wwwgroup,
mode => $mode,
seltype => $::operatingsystem ? {
redhat => "httpd_sys_script_exec_t",
Expand Down Expand Up @@ -208,7 +213,7 @@
file {"${apache::params::root}/${name}/private":
ensure => directory,
owner => $wwwuser,
group => $group,
group => $wwwgroup,
mode => $mode,
seltype => $::operatingsystem ? {
redhat => "httpd_sys_content_t",
Expand Down

0 comments on commit baefda8

Please sign in to comment.