[MediaWiki-commits] [Gerrit] Add the new OTRS scheduler watchdog cron entry - change (operations/puppet)

2015-10-02 Thread Alexandros Kosiaris (Code Review)
Alexandros Kosiaris has submitted this change and it was merged.

Change subject: Add the new OTRS scheduler watchdog cron entry
..


Add the new OTRS scheduler watchdog cron entry

OTRS since 3.3.6 needs a cron entry for the otrs.Scheduler to work as a
watchdog

Change-Id: If68bd98cb6d4ecfed7c50d375d6a360130419ab5
---
A modules/otrs/files/crontab.otrs-scheduler
M modules/otrs/manifests/init.pp
2 files changed, 16 insertions(+), 0 deletions(-)

Approvals:
  Alexandros Kosiaris: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/otrs/files/crontab.otrs-scheduler 
b/modules/otrs/files/crontab.otrs-scheduler
new file mode 100644
index 000..8bd1596
--- /dev/null
+++ b/modules/otrs/files/crontab.otrs-scheduler
@@ -0,0 +1,6 @@
+# installed by puppet
+
+MAILTO="r...@wikimedia.org"
+
+# check scheduler status
+*/5 * * * *  otrs /opt/bin/otrs.Scheduler.pl -w 1 > /dev/null 2>&1
diff --git a/modules/otrs/manifests/init.pp b/modules/otrs/manifests/init.pp
index 3abc343..1ca2b1d 100644
--- a/modules/otrs/manifests/init.pp
+++ b/modules/otrs/manifests/init.pp
@@ -133,6 +133,9 @@
 }
 
 # TODO: Remove the safeguard once we are jessie only
+# NOTE: We couple the move to 4.0.x OTRS with the move to jessie, since 
that
+# should not bite back as after the move the 3.2.x install we have will be
+# decomissioned
 if os_version('debian >= jessie') {
 base::service_unit { 'otrs-scheduler':
 ensure  => present,
@@ -145,5 +148,12 @@
 hasrestart => false,
 }
 }
+file { '/etc/cron.d/otrs-scheduler':
+ensure => 'file',
+owner  => 'root',
+group  => 'root',
+mode   => '0444',
+source => 'puppet:///modules/otrs/crontab.otrs-scheduler',
+}
 }
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: If68bd98cb6d4ecfed7c50d375d6a360130419ab5
Gerrit-PatchSet: 7
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris 
Gerrit-Reviewer: Alexandros Kosiaris 
Gerrit-Reviewer: Faidon Liambotis 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] Add the new OTRS scheduler watchdog cron entry - change (operations/puppet)

2015-09-29 Thread Alexandros Kosiaris (Code Review)
Alexandros Kosiaris has uploaded a new change for review.

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

Change subject: Add the new OTRS scheduler watchdog cron entry
..

Add the new OTRS scheduler watchdog cron entry

OTRS since 3.3.6 needs a cron entry for the otrs.Scheduler to work as a
watchdog

Change-Id: If68bd98cb6d4ecfed7c50d375d6a360130419ab5
---
M modules/otrs/files/crontab.otrs
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/84/242184/1

diff --git a/modules/otrs/files/crontab.otrs b/modules/otrs/files/crontab.otrs
index abf5255..8234d39 100644
--- a/modules/otrs/files/crontab.otrs
+++ b/modules/otrs/files/crontab.otrs
@@ -26,3 +26,6 @@
 
 # unlock old locked tickets hourly
 35 * * * *   otrs /opt/otrs/bin/otrs.UnlockTickets.pl --timeout > /dev/null 
2>&1
+
+# check scheduler status
+*/5 * * * *  otrs /opt/bin/otrs.Scheduler.pl -w 1 > /dev/null 2>&1

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If68bd98cb6d4ecfed7c50d375d6a360130419ab5
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris 

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