Hashar has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/72504


Change subject: get rid of GlusterFS on deployment-prep labs project
......................................................................

get rid of GlusterFS on deployment-prep labs project

GlusterFS NEVER worked properly on the deployment-prep project, possibly
because it has to interact with a lot of small files constantly and
access to huge data / file hiearchy.

I wish we could add that class by default in the LDAP configuration, but
that does not seem to be possible.  I do not want people to remember to
check the role::labsnfs class whenever they create an instance.   So the
only practical solution is to hack in base.pp and choose gluster or NFS
on a per project basis.  That is simple case statement harnessed under a
$::ream == 'labs', so I do not think it is harmful.

Change-Id: I1428f2363e1498bf6630cc4b9174fbdedf3ab2de
---
M manifests/base.pp
1 file changed, 13 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/04/72504/1

diff --git a/manifests/base.pp b/manifests/base.pp
index 2e5060d..7534b40 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -781,8 +781,19 @@
        }
 
        if $::realm == "labs" {
-               include base::instance-upstarts,
-                       generic::gluster-client
+               include base::instance-upstarts
+
+               # Storage backend to use for /home & /data/project
+               # Configured on a per project basis inside puppet since we do 
not have any
+               # other good way to do so.
+               case $::instanceproject {
+                       'deployment-prep': {
+                               include role::labsnfs::client
+                       }
+                       default: {
+                               include generic::gluster-client
+                       }
+               }
 
                # make common logs readable
                class {'base::syslogs': readable => 'true'; }

-- 
To view, visit https://gerrit.wikimedia.org/r/72504
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1428f2363e1498bf6630cc4b9174fbdedf3ab2de
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hashar <has...@free.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to