Ottomata has submitted this change and it was merged.

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(-)

Approvals:
  Ottomata: Verified; Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: Id5daf279b49fb44de0ae2a25f62039c5cf3c6724
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <[email protected]>
Gerrit-Reviewer: Nuria <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to