jenkins-bot has submitted this change and it was merged.
Change subject: Add logrotate files
......................................................................
Add logrotate files
Change-Id: I0e10518088d04775ffdc1f2cc8489aa4b55f8dfe
---
A puppet/modules/logrotate/files/twn
A puppet/modules/logrotate/files/twn-database-backup
A puppet/modules/logrotate/manifests/init.pp
3 files changed, 31 insertions(+), 0 deletions(-)
Approvals:
Siebrand: Looks good to me, approved
jenkins-bot: Verified
diff --git a/puppet/modules/logrotate/files/twn
b/puppet/modules/logrotate/files/twn
new file mode 100644
index 0000000..57823b1
--- /dev/null
+++ b/puppet/modules/logrotate/files/twn
@@ -0,0 +1,10 @@
+# Managed by puppet.
+/www/translatewiki.net/w/logs/error_php /www/translatewiki.net/w/logs/error_js
/www/translatewiki.net/w/logs/jobqueue {
+ copytruncate
+ rotate 4
+ weekly
+ nocompress
+ dateext
+ missingok
+ notifempty
+}
diff --git a/puppet/modules/logrotate/files/twn-database-backup
b/puppet/modules/logrotate/files/twn-database-backup
new file mode 100644
index 0000000..10e4cc6
--- /dev/null
+++ b/puppet/modules/logrotate/files/twn-database-backup
@@ -0,0 +1,11 @@
+# Managed by puppet.
+/home/betawiki/twn-db-backup.sql {
+ rotate 1
+ daily
+ compress
+ compresscmd /bin/bzip2
+ compressext .bz2
+ dateext
+ notifempty
+ nocreate
+}
diff --git a/puppet/modules/logrotate/manifests/init.pp
b/puppet/modules/logrotate/manifests/init.pp
new file mode 100644
index 0000000..5f5f04d
--- /dev/null
+++ b/puppet/modules/logrotate/manifests/init.pp
@@ -0,0 +1,10 @@
+class exim-conf {
+ file { '/etc/logrotate.d/twn':
+ source => 'puppet:///modules/logrotate/twn'
+ }
+
+ # @todo Should eventually end up in a backup module
+ file { '/etc/logrotate.d/twn-database-backup':
+ source => 'puppet:///modules/logrotate/twn-database-backup'
+ }
+}
--
To view, visit https://gerrit.wikimedia.org/r/92022
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0e10518088d04775ffdc1f2cc8489aa4b55f8dfe
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits