Restart log pusher when its config is updated.

* modules/openstack_project/manifests/logstash.pp:
Subscribe the jenkins-log-pusher service to the log pusher yaml config
file so that updates to the config force the pusher service to restart
and reload its config.

Change-Id: I4a675907133075bf8fa716b8c57c011489842858
Reviewed-on: https://review.openstack.org/29997
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
This commit is contained in:
Clark Boylan 2013-05-21 14:51:33 -07:00 committed by Jenkins
parent e37c13e82f
commit 1fed9e39e4

View File

@ -79,6 +79,7 @@ class openstack_project::logstash (
service { 'jenkins-log-pusher':
enable => true,
hasrestart => true,
subscribe => File['/etc/logstash/jenkins-log-pusher.yaml'],
require => File['/etc/init.d/jenkins-log-pusher'],
}