summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/templates
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-08-04 23:35:10 +0200
committerJan Dittberner <jandd@cacert.org>2019-08-04 23:35:10 +0200
commit5043c96c8c61ef01efc207167b4723e9ac07e288 (patch)
tree419f6c00507c640ed956291bdddd30352c8885c0 /sitemodules/profiles/templates
parent47557d94dc62e6d1d6c7a3d1cc46d39d4090b13b (diff)
downloadcacert-puppet-5043c96c8c61ef01efc207167b4723e9ac07e288.tar.gz
cacert-puppet-5043c96c8c61ef01efc207167b4723e9ac07e288.tar.xz
cacert-puppet-5043c96c8c61ef01efc207167b4723e9ac07e288.zip
Setup automatic updates of icinga2/conf.d from git
* add git hook for icinga2 on monitor
Diffstat (limited to 'sitemodules/profiles/templates')
-rw-r--r--sitemodules/profiles/templates/icinga2_master/icinga2-git-pull-hook.ini.epp16
1 files changed, 16 insertions, 0 deletions
diff --git a/sitemodules/profiles/templates/icinga2_master/icinga2-git-pull-hook.ini.epp b/sitemodules/profiles/templates/icinga2_master/icinga2-git-pull-hook.ini.epp
new file mode 100644
index 0000000..02d5b0c
--- /dev/null
+++ b/sitemodules/profiles/templates/icinga2_master/icinga2-git-pull-hook.ini.epp
@@ -0,0 +1,16 @@
+<%- | String $ssh_passphrase,
+ String $git_directory,
+ String $git_repository,
+ String $git_branch,
+ Array[String] $tokens
+| -%>
+# THIS FILE IS MANAGED BY PUPPET, MANUAL CHANGES WILL BE OVERWRITTEN AT THE
+# NEXT PUPPET RUN.
+
+[icinga2-git-pull-hook]
+ssh_passphrase=<%= $ssh_passphrase %>
+tokens=<%= $tokens.join(',') %>
+git_directory=<%= $git_directory %>
+logfile=/var/log/git-pull-hook.log
+git_repository=<%= $git_repository %>
+git_branch=<%= $git_branch %>