Legoktm has uploaded a new change for review. https://gerrit.wikimedia.org/r/88006
Change subject: Add redisjobqueue role ...................................................................... Add redisjobqueue role Change-Id: I0d9f515e053cbba94a626180c32fde19697d2325 --- M puppet/manifests/roles.pp 1 file changed, 26 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/vagrant refs/changes/06/88006/1 diff --git a/puppet/manifests/roles.pp b/puppet/manifests/roles.pp index 4db69ea..bf29f19 100644 --- a/puppet/manifests/roles.pp +++ b/puppet/manifests/roles.pp @@ -578,3 +578,29 @@ }, } } + +# == Class: role::redisjobqueue +# Sets up the JobQueue to use redis! +class role::redisjobqueue { + include role::mediawiki + include cron + + cron::job { + 'runJobs': + minute => '*', + hour => '*', + date => '*', + month => '*', + weekday => '*', + user => 'root', + command => 'php /vagrant/mediawiki/maintenance/runJobs.php', + } + @mediawiki::settings { + 'redisjobqueue': + values: { + wgJobRunRate => 0, + wgJobTypeConf => 'array("default"=>array("class"=>"JobQueueRedis","redisServer"=>"localhost","redisConfig"=>array("connectTimeout"=>2,"compression"=>"gzip")))' + } + } + +} -- To view, visit https://gerrit.wikimedia.org/r/88006 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0d9f515e053cbba94a626180c32fde19697d2325 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/vagrant Gerrit-Branch: master Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits