Dzahn has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/358150 )

Change subject: wikistats: cron for XML dumps (WIP)
......................................................................

wikistats: cron for XML dumps (WIP)

Change-Id: I76c4390342ca8347229e2e781292a3f2f9f54369
---
A modules/wikistats/manifests/cronjob/xmldump.pp
1 file changed, 16 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/50/358150/1

diff --git a/modules/wikistats/manifests/cronjob/xmldump.pp 
b/modules/wikistats/manifests/cronjob/xmldump.pp
new file mode 100644
index 0000000..a03733c
--- /dev/null
+++ b/modules/wikistats/manifests/cronjob/xmldump.pp
@@ -0,0 +1,16 @@
+# define a cronjob to dump xml tables
+# usage: <project prefix>@<hour>
+define wikistats::cronjob::xmldump() {
+
+    $project = regsubst($name, '@.*', '\1')
+    $hour    = regsubst($name, '.*@', '\1')
+
+    cron { "cron-wikistats-xmldump-${name}":
+        ensure  => present,
+        command => "",
+        user    => 'wikistatsuser',
+        hour    => $hour,
+        minute  => 0,
+    }
+}
+

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I76c4390342ca8347229e2e781292a3f2f9f54369
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn <dz...@wikimedia.org>

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

Reply via email to