summaryrefslogtreecommitdiff
path: root/sitemodules/profiles
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2021-02-06 16:14:13 +0100
committerJan Dittberner <jandd@cacert.org>2021-02-06 16:14:13 +0100
commit654439711d76391f5ea44705a94c1d3f4225277d (patch)
treec323e26ae287660be6bbce459a8c24f5d1051d4f /sitemodules/profiles
parent794b706bc39a7c06fa9cc952e733035fbecf01e1 (diff)
downloadcacert-puppet-654439711d76391f5ea44705a94c1d3f4225277d.tar.gz
cacert-puppet-654439711d76391f5ea44705a94c1d3f4225277d.tar.xz
cacert-puppet-654439711d76391f5ea44705a94c1d3f4225277d.zip
Manage global-templates directory for Icinga2
Diffstat (limited to 'sitemodules/profiles')
-rw-r--r--sitemodules/profiles/manifests/icinga2_master.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/icinga2_master.pp b/sitemodules/profiles/manifests/icinga2_master.pp
index 65494ef..31ac05d 100644
--- a/sitemodules/profiles/manifests/icinga2_master.pp
+++ b/sitemodules/profiles/manifests/icinga2_master.pp
@@ -233,6 +233,13 @@ class profiles::icinga2_master (
include ::icinga2
+ file { '/etc/icinga2/zones.d/global-templates':
+ ensure => directory,
+ purge => true,
+ recurse => true,
+ } ->
+ File <<| ensure != 'directory' and tag == 'icinga2::scripts::file' |>> { }
+
::icinga2::object::checkcommand { 'ocsp':
ensure => present,
command => [