Ppchelko has uploaded a new change for review.

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

Change subject: Emit resource_change events from RESTBase.
......................................................................

Emit resource_change events from RESTBase.

Set up eventlogging-service configuration for RESTBase.
Before https://gerrit.wikimedia.org/r/#/c/281571/ is deployed,
this is a no-op in production.

Bug: T126571
Change-Id: I3388d446e48bb9c9441b30b1f436c308fe1c9b43
---
M modules/restbase/manifests/init.pp
M modules/restbase/templates/config.labs.yaml.erb
M modules/restbase/templates/config.yaml.erb
3 files changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/40/281740/1

diff --git a/modules/restbase/manifests/init.pp 
b/modules/restbase/manifests/init.pp
index 3542fe4..c8e7a45 100644
--- a/modules/restbase/manifests/init.pp
+++ b/modules/restbase/manifests/init.pp
@@ -75,6 +75,9 @@
 # [*purge_port*]
 #   The port the vhtcp daemon listens to. Default: 4827
 #
+# [*eventlogging_service_uri*]
+#   Eventlogging service URI. Default: 
http://eventbus.svc.eqiad.wmnet:8085/v1/events
+#
 # [*monitor_domain*]
 #   The domain to monitor during the service's operation.
 #   Default: en.wikipedia.org
@@ -105,6 +108,8 @@
     'http://aqs.svc.eqiad.wmnet:7232/analytics.wikimedia.org/v1',
     $purge_host     = '239.128.0.112',
     $purge_port     = 4827,
+    $eventlogging_service_uri = 
+    'http://eventbus.svc.eqiad.wmnet:8085/v1/events',
     $monitor_domain = 'en.wikipedia.org',
 ) {
 
diff --git a/modules/restbase/templates/config.labs.yaml.erb 
b/modules/restbase/templates/config.labs.yaml.erb
index 09c1ea7..e6c17fc 100644
--- a/modules/restbase/templates/config.labs.yaml.erb
+++ b/modules/restbase/templates/config.labs.yaml.erb
@@ -36,6 +36,9 @@
           purge:
             host: <%= @purge_host %>
             port: <%= @purge_port %>
+          eventlogging_service:
+            uri: 
http://deployment-eventlogging04.deployment-prep.eqiad.wmflabs:8085/v1/events
+            topic: resource_change
         related:
           cache_control: s-maxage=86400, max-age=86400
         # Cache headers for purged end points.
diff --git a/modules/restbase/templates/config.yaml.erb 
b/modules/restbase/templates/config.yaml.erb
index 39129eb..3577051 100644
--- a/modules/restbase/templates/config.yaml.erb
+++ b/modules/restbase/templates/config.yaml.erb
@@ -59,6 +59,9 @@
           purge:
             host: <%= @purge_host %>
             port: <%= @purge_port %>
+          eventlogging_service:
+            uri: <%= @eventlogging_service_uri %>
+            topic: resource_change
         related:
           cache_control: s-maxage=86400, max-age=3600
         # Cache headers for purged end points.

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

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

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

Reply via email to