Alexandros Kosiaris has submitted this change and it was merged.

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 in order for the
service to be available

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

Approvals:
  Alexandros Kosiaris: Verified; Looks good to me, approved



diff --git a/modules/citoid/manifests/init.pp b/modules/citoid/manifests/init.pp
index 08b0521..9be148a 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,22 @@
 # 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: '""'
+#
+class citoid(
+    $zotero_host,
+    $zotero_port,
+    $wskey = '""',
 ) {
     service::node { 'citoid':
         port              => 1970,
@@ -22,6 +32,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: merged
Gerrit-Change-Id: I56018d4f98ae8e3c764752c9cface768ad20ad7d
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mobrovac <mobro...@wikimedia.org>
Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org>
Gerrit-Reviewer: Hashar <has...@free.fr>
Gerrit-Reviewer: Mobrovac <mobro...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to