From 81a800eb3159b26316038599c0aa4bca8b63cdcf Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sun, 21 Jul 2019 16:42:45 +0200 Subject: Add global zone --- sitemodules/profiles/manifests/icinga2_agent.pp | 7 +++++++ 1 file changed, 7 insertions(+) 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", -- cgit v1.2.1