summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2018-04-14 20:12:00 +0200
committerJan Dittberner <jandd@cacert.org>2018-04-14 20:12:00 +0200
commit72445dce9b75e54c3f656dd47a091b2a4f8806d3 (patch)
treedb725374a7388ddd588fed3631cbf3ebb91f34c1
parent24598d180b41e324da9f686fc0b3763b91add4bc (diff)
downloadcacert-puppet-72445dce9b75e54c3f656dd47a091b2a4f8806d3.tar.gz
cacert-puppet-72445dce9b75e54c3f656dd47a091b2a4f8806d3.tar.xz
cacert-puppet-72445dce9b75e54c3f656dd47a091b2a4f8806d3.zip
Restart git-pull-hook on changes to itself and its configuration
-rw-r--r--sitemodules/profiles/manifests/puppet_server.pp7
1 files changed, 4 insertions, 3 deletions
diff --git a/sitemodules/profiles/manifests/puppet_server.pp b/sitemodules/profiles/manifests/puppet_server.pp
index 0730112..eb7a4bb 100644
--- a/sitemodules/profiles/manifests/puppet_server.pp
+++ b/sitemodules/profiles/manifests/puppet_server.pp
@@ -76,9 +76,10 @@ class profiles::puppet_server (
}
service { 'git-pull-hook':
- ensure => running,
- enable => true,
- require => [
+ ensure => running,
+ enable => true,
+ subscribe => [File['/etc/git-pull-hook.ini'], File['/usr/local/sbin/git-pull-hook']],
+ require => [
File['/etc/init.d/git-pull-hook'], File['/usr/local/sbin/git-pull-hook'],
File['/etc/git-pull-hook.ini'],
],