GWicke has uploaded a new change for review.

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

Change subject: Enable graphoid in labs & production
......................................................................

Enable graphoid in labs & production

Depends on RESTBase deploy to make the public graphoid API spec available.

Change-Id: Ia20ff1843d19b2db623057c18bab82df521f296f
---
M modules/restbase/templates/config.labs.yaml.erb
M modules/restbase/templates/config.yaml.erb
2 files changed, 27 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/58/211758/1

diff --git a/modules/restbase/templates/config.labs.yaml.erb 
b/modules/restbase/templates/config.labs.yaml.erb
index 925f93f..bfd82a6 100644
--- a/modules/restbase/templates/config.labs.yaml.erb
+++ b/modules/restbase/templates/config.labs.yaml.erb
@@ -63,7 +63,7 @@
         - user:read
     x-subspecs:
       - mediawiki/v1/content
-    # - mediawiki/v1/mobile
+      - mediawiki_v1_graphoid
     # - mediawiki/v1/revision-scoring
 
   wmf-sys-1.0.0: &wp/sys/1.0.0
@@ -124,6 +124,19 @@
             options:
               apiURI: http://{domain}/w/api.php
 
+      /{module:graphoid}:
+        x-modules:
+          - name: simple_service
+            version: 1.0.0
+            type: file
+            options:
+              paths:
+                /v1/png/{title}/{revision}/{graph_id}:
+                  get:
+                    backend_request:
+                      # deployment-sca01
+                      uri: 
http://10.68.16.145:19000/{domain}/v1/png/{title}/{revision}/{graph_id}
+
   wp-default-1.0.0: &wp/default/1.0.0
     x-subspecs:
       - paths:
diff --git a/modules/restbase/templates/config.yaml.erb 
b/modules/restbase/templates/config.yaml.erb
index 778bac6..2efb73c 100644
--- a/modules/restbase/templates/config.yaml.erb
+++ b/modules/restbase/templates/config.yaml.erb
@@ -68,7 +68,7 @@
         - user:read
     x-subspecs:
       - mediawiki/v1/content
-    # - mediawiki/v1/mobile
+      - mediawiki_v1_graphoid
     # - mediawiki/v1/revision-scoring
 
   wmf-sys-1.0.0: &wp/sys/1.0.0
@@ -131,6 +131,18 @@
             options:
               apiURI: http://{domain}/w/api.php
 
+      /{module:graphoid}:
+        x-modules:
+          - name: simple_service
+            version: 1.0.0
+            type: file
+            options:
+              paths:
+                /v1/png/{title}/{revision}/{graph_id}:
+                  get:
+                    backend_request:
+                      uri: 
http://graphoid.svc.eqiad.wmnet:19000/{domain}/v1/png/{title}/{revision}/{graph_id}
+
   wp-default-1.0.0: &wp/default/1.0.0
     x-subspecs:
       - paths:

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia20ff1843d19b2db623057c18bab82df521f296f
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: GWicke <gwi...@wikimedia.org>

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

Reply via email to