Ottomata has submitted this change and it was merged.

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(-)

Approvals:
  Ottomata: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/manifests/init.pp b/manifests/init.pp
index 072633e..2c7b1ca 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -81,6 +81,11 @@
 #                                 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.
@@ -144,6 +149,7 @@
     $db_replication_lag_threshold = 3, # hours
 
     $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 6481b1b..03980d6 100644
--- a/templates/db_config.yaml.erb
+++ b/templates/db_config.yaml.erb
@@ -8,4 +8,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: merged
Gerrit-Change-Id: I7ab0379d4f3377a36c24cecbf697bb2017208c63
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet/wikimetrics
Gerrit-Branch: master
Gerrit-Owner: Milimetric <[email protected]>
Gerrit-Reviewer: Nuria <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to