summaryrefslogtreecommitdiff
path: root/sitemodules
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-07-21 16:42:45 +0200
committerJan Dittberner <jandd@cacert.org>2019-07-21 16:42:45 +0200
commit81a800eb3159b26316038599c0aa4bca8b63cdcf (patch)
tree920fd1738a0dbb8cc9084b4b34bf2f4e376e6d96 /sitemodules
parent39dcd81d4aabb1f031bd76352243680cb6a29475 (diff)
downloadcacert-puppet-81a800eb3159b26316038599c0aa4bca8b63cdcf.tar.gz
cacert-puppet-81a800eb3159b26316038599c0aa4bca8b63cdcf.tar.xz
cacert-puppet-81a800eb3159b26316038599c0aa4bca8b63cdcf.zip
Add global zone
Diffstat (limited to 'sitemodules')
-rw-r--r--sitemodules/profiles/manifests/icinga2_agent.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/icinga2_agent.pp b/sitemodules/profiles/manifests/icinga2_agent.pp
index 3ea1bba..2aae854 100644
--- a/sitemodules/profiles/manifests/icinga2_agent.pp
+++ b/sitemodules/profiles/manifests/icinga2_agent.pp
@@ -58,6 +58,9 @@ class profiles::icinga2_agent (
ticket_id => $pki_ticket,
endpoints => {
'NodeName' => {},
+ $master_host = {
+ host => $master_host,
+ },
},
zones => {
'ZoneName' => {
@@ -70,6 +73,10 @@ class profiles::icinga2_agent (
},
}
+ icinga2::object::zone { 'global-templates':
+ global => true,
+ }
+
@@icinga2::object::endpoint { $::fqdn:
ensure => present,
target => "/etc/icinga2/zones.d/${::fqdn}.conf",