Hashar has uploaded a new change for review.

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

Change subject: Disable Zero configuration on beta cluster
......................................................................

Disable Zero configuration on beta cluster

The mobile varnish caches fetches json files from a blocked URL which is
not available from labs.  Adds in an infamous $::realm to skip Zero
configuration on the beta cluster.

Change-Id: Id210524729518db64b07df2971313cb1289d7151
---
M manifests/role/cache.pp
1 file changed, 9 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/69/119769/1

diff --git a/manifests/role/cache.pp b/manifests/role/cache.pp
index adf08c7..5f1d674 100644
--- a/manifests/role/cache.pp
+++ b/manifests/role/cache.pp
@@ -1009,12 +1009,16 @@
             }
         }
 
-        varnish::netmapper_update {
-            'zero.json': url => 
'http://noc.wikimedia.org/~bblack/zero/zero.json';
-        }
+        # Zero mobile related configuration.
+        # Cant be published on labs.
+        if $::realm == 'production' {
+            varnish::netmapper_update {
+                'zero.json': url => 
'http://noc.wikimedia.org/~bblack/zero/zero.json';
+            }
 
-        varnish::netmapper_update {
-            'proxies.json': url => 
'http://noc.wikimedia.org/~bblack/zero/proxies.json';
+            varnish::netmapper_update {
+                'proxies.json': url => 
'http://noc.wikimedia.org/~bblack/zero/proxies.json';
+            }
         }
 
         varnish::instance { "mobile-backend":

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id210524729518db64b07df2971313cb1289d7151
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hashar <[email protected]>

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

Reply via email to