Subscribe worker service to subunit2sql package

This commit subscribes the worker daemon to the subunit2sql package
to make it restart when there is a new version released.

Change-Id: I27b2ad1ce4a02e369c52bc154670302e60bcb75f
This commit is contained in:
Matthew Treinish 2015-03-13 19:50:34 -04:00
parent a665f7b970
commit a11d7763ce
1 changed files with 7 additions and 4 deletions

View File

@ -68,10 +68,13 @@ define subunit2sql::worker (
}
service { "jenkins-subunit-worker${suffix}":
enable => true,
hasrestart => true,
subscribe => File["/etc/logstash/jenkins-subunit-worker${suffix}.yaml"],
require => [
enable => true,
hasrestart => true,
subscribe => [
File["/etc/logstash/jenkins-subunit-worker${suffix}.yaml"],
Package['subunit2sql'],
],
require => [
File['/etc/logstash'],
File["/etc/init.d/jenkins-subunit-worker${suffix}"],
],