Skip to content

Commit befb80b

Browse files
committed
Merge pull request #97 from CPAN-API/leo/make_minion_queue_reload_on_code_change
restart the minion queue each time we run puppet (incase code has cha…
2 parents bb25638 + ecf5443 commit befb80b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

modules/minion_queue/manifests/service.pp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,16 @@
2525
service { $service_name:
2626
ensure => $service_enable,
2727
enable => $service_enable,
28+
# Sit after starman, which will be after git update
29+
# IF git was used to setup a notify
30+
require => [ Starman::Service['metacpan-api'] ],
31+
}
32+
33+
# Everytime we run puppet, restart the queue
34+
# ideally we'd subscribe to the git update of metacpan-api
35+
# but we don't use the git repo on the dev boxes
36+
exec { 'restart_minion_queue':
37+
command => "${init} restart",
38+
require => [ Service[$service_name] ],
2839
}
2940
}

0 commit comments

Comments
 (0)