Mobrovac has uploaded a new change for review.

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

Change subject: Citoid: Add the wskey parameter
......................................................................

Citoid: Add the wskey parameter

As of Ie43420a4e Citoid supports calling the WorldCat Search API which
allows one to retrieve information about a publication. However, in
order to do that freely, an API key is needed. This change allows us to
set it for production.

Note that we need to add the real key to ops/private, the key provided
in this patch is temporary.

Bug: T1084
Change-Id: I56018d4f98ae8e3c764752c9cface768ad20ad7d
---
M modules/citoid/manifests/init.pp
1 file changed, 18 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/43/324943/1

diff --git a/modules/citoid/manifests/init.pp b/modules/citoid/manifests/init.pp
index 08b0521..ea4a3e5 100644
--- a/modules/citoid/manifests/init.pp
+++ b/modules/citoid/manifests/init.pp
@@ -1,4 +1,4 @@
-# Class: citoid
+# == Class: citoid
 #
 # This class installs and configures citoid
 #
@@ -6,12 +6,23 @@
 # accomodate future citoid needs that are not suited for the service module
 # classes as well as conform to a de-facto standard of having a module for 
every
 # service
-# Parameters:
-#   zotero_host. The DNS/IP address of the zotero host
 #
-#   zotero_port. The zotero host's TCP port
-class citoid( $zotero_host,
-              $zotero_port,
+# === Parameters
+#
+# [*zotero_host*]
+#   The DNS/IP address of the zotero host
+#
+# [*zotero_port*]
+#   The zotero host's TCP port
+#
+# [*wskey*]
+#   The WorldCat Search API key to use. Default:
+#   
SzH9M2MhDgFmp0nyi8xKGI62A2Ll3cB4j8krnON0ZJPQqzqm0uo1Du3CNYk7mVllOcujIsWWwLumboHj
+#
+class citoid(
+    $zotero_host,
+    $zotero_port,
+    $wskey = 
'SzH9M2MhDgFmp0nyi8xKGI62A2Ll3cB4j8krnON0ZJPQqzqm0uo1Du3CNYk7mVllOcujIsWWwLumboHj',
 ) {
     service::node { 'citoid':
         port              => 1970,
@@ -22,6 +33,7 @@
         deployment_vars   => {
             zotero_host => $zotero_host,
             zotero_port => $zotero_port,
+            wskey       => $wskey,
         },
     }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I56018d4f98ae8e3c764752c9cface768ad20ad7d
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mobrovac <mobro...@wikimedia.org>

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

Reply via email to