diff options
author | Jan Dittberner <jandd@cacert.org> | 2019-07-21 16:42:45 +0200 |
---|---|---|
committer | Jan Dittberner <jandd@cacert.org> | 2019-07-21 16:42:45 +0200 |
commit | 81a800eb3159b26316038599c0aa4bca8b63cdcf (patch) | |
tree | 920fd1738a0dbb8cc9084b4b34bf2f4e376e6d96 | |
parent | 39dcd81d4aabb1f031bd76352243680cb6a29475 (diff) | |
download | cacert-puppet-81a800eb3159b26316038599c0aa4bca8b63cdcf.tar.gz cacert-puppet-81a800eb3159b26316038599c0aa4bca8b63cdcf.tar.xz cacert-puppet-81a800eb3159b26316038599c0aa4bca8b63cdcf.zip |
Add global zone
-rw-r--r-- | sitemodules/profiles/manifests/icinga2_agent.pp | 7 |
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", |