Milimetric has uploaded a new change for review.

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

Change subject: Make archive table name configurable
......................................................................

Make archive table name configurable

Change-Id: I7ab0379d4f3377a36c24cecbf697bb2017208c63
---
M manifests/init.pp
M templates/db_config.yaml.erb
2 files changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet/wikimetrics 
refs/changes/92/162292/1

diff --git a/manifests/init.pp b/manifests/init.pp
index 827c4cc..5780366 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -58,6 +58,11 @@
 #                          custom revision tablename.  In
 #                          labs, you will probably want 'revision_userindex',
 #                          otherwise, probably just 'revision'.  Default: 
undef.
+# $archive_tablename     - Name of archive table in mediawiki database.
+#                          Set this only if you need to set a
+#                          custom archive tablename.  In
+#                          labs, you will probably want 'archive_userindex',
+#                          otherwise, probably just 'archive'.  Default: undef.
 #
 # $config_directory      - Config directory for wikimetrics .yaml config files.
 #                          Default: /etc/wikimetrics
@@ -115,6 +120,7 @@
     $db_pool_mediawiki     = 32,
 
     $revision_tablename    = undef,
+    $archive_tablename     = undef,
 
     $var_directory         = '/var/lib/wikimetrics',
     $run_directory         = '/var/run/wikimetrics',
diff --git a/templates/db_config.yaml.erb b/templates/db_config.yaml.erb
index d8433fc..0a3f072 100644
--- a/templates/db_config.yaml.erb
+++ b/templates/db_config.yaml.erb
@@ -6,4 +6,5 @@
 DEBUG                           : <%= @debug ? 'True' : 'False' %>
 <% if @revision_tablename -%>
 REVISION_TABLENAME              : <%= @revision_tablename %>
+ARCHIVE_TABLENAME               : <%= @archive_tablename %>
 <% end -%>

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7ab0379d4f3377a36c24cecbf697bb2017208c63
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet/wikimetrics
Gerrit-Branch: master
Gerrit-Owner: Milimetric <[email protected]>

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

Reply via email to