summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/icinga2_agent.pp
diff options
context:
space:
mode:
Diffstat (limited to 'sitemodules/profiles/manifests/icinga2_agent.pp')
-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",