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 0000000..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 <akosia...@wikimedia.org> Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org> Gerrit-Reviewer: Faidon Liambotis <fai...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits