Ottomata has uploaded a new change for review.
https://gerrit.wikimedia.org/r/123639
Change subject: Using www-data as wikimetrics group if running in apache web
mode
......................................................................
Using www-data as wikimetrics group if running in apache web mode
Change-Id: Id5daf279b49fb44de0ae2a25f62039c5cf3c6724
---
M manifests/role/wikimetrics.pp
1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/39/123639/1
diff --git a/manifests/role/wikimetrics.pp b/manifests/role/wikimetrics.pp
index 86fec34..fbb998c 100644
--- a/manifests/role/wikimetrics.pp
+++ b/manifests/role/wikimetrics.pp
@@ -66,6 +66,13 @@
undef => 'apache',
default => $::wikimetrics_web_mode,
}
+ # Make wikimetrics group 'www-data' if running in apache mode.
+ # This allows for apache to write files to wikimetrics var directories.
+ $wikimetrics_group = $web_mode ? {
+ 'apache' => 'www-data',
+ default => 'wikimetrics',
+ }
+
# if the global variable $::wikimetrics_server_name is set,
# use it as the server_name. This allows
@@ -107,6 +114,7 @@
}
class { '::wikimetrics':
path => $wikimetrics_path,
+ group => $wikimetrics_group,
# clone wikimetrics as root user so it can write to /srv
repository_owner => 'root',
--
To view, visit https://gerrit.wikimedia.org/r/123639
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id5daf279b49fb44de0ae2a25f62039c5cf3c6724
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits