diff options
author | Jan Dittberner <jandd@cacert.org> | 2019-07-21 14:01:54 +0200 |
---|---|---|
committer | Jan Dittberner <jandd@cacert.org> | 2019-07-21 14:01:54 +0200 |
commit | e46fcf6187a53871e1d204f66ee852bc62b2a03f (patch) | |
tree | ef12d3ba1fafc87a090eca20ce79367183568003 | |
parent | ce7a64306015bfab03666068ce1407cf0195d693 (diff) | |
download | cacert-puppet-e46fcf6187a53871e1d204f66ee852bc62b2a03f.tar.gz cacert-puppet-e46fcf6187a53871e1d204f66ee852bc62b2a03f.tar.xz cacert-puppet-e46fcf6187a53871e1d204f66ee852bc62b2a03f.zip |
Fix resource syntax
-rw-r--r-- | sitemodules/profiles/manifests/icinga2_agent.pp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sitemodules/profiles/manifests/icinga2_agent.pp b/sitemodules/profiles/manifests/icinga2_agent.pp index 9b4fec5..285ba74 100644 --- a/sitemodules/profiles/manifests/icinga2_agent.pp +++ b/sitemodules/profiles/manifests/icinga2_agent.pp @@ -56,15 +56,13 @@ class profiles::icinga2_agent ( } Exec['/bin/sh /var/lib/icinga2/setup_agent.sh'] ~> Service<| name == 'icinga2' |> - @@icinga2::object::endpoint { + @@icinga2::object::endpoint { $::fqdn: ensure => present, - endpoint_name => $::fqdn, target => "/etc/icinga2/zones.d/${::fqdn}.conf", } - @@icinga2::object::zone { + @@icinga2::object::zone { $::fqdn: ensure => present, - zone_name => $::fqdn, endpoints => [$::fqdn], parent => $::profiles::icinga2_common::master_host, target => "/etc/icinga2/zones.d/${::fqdn}.conf", |