summaryrefslogtreecommitdiff
path: root/sitemodules
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-07-21 13:43:06 +0200
committerJan Dittberner <jandd@cacert.org>2019-07-21 13:43:06 +0200
commitd062c58cc4463298b55cce26287fbcdceba169f7 (patch)
tree4ff854bc1dc49b499ec05a9733ef65af2290996f /sitemodules
parent3779b45a134f2fbc10280a86141813e9f3287122 (diff)
downloadcacert-puppet-d062c58cc4463298b55cce26287fbcdceba169f7.tar.gz
cacert-puppet-d062c58cc4463298b55cce26287fbcdceba169f7.tar.xz
cacert-puppet-d062c58cc4463298b55cce26287fbcdceba169f7.zip
Re-enable icinga agent setup script
Diffstat (limited to 'sitemodules')
-rw-r--r--sitemodules/profiles/manifests/icinga2_agent.pp18
1 files changed, 10 insertions, 8 deletions
diff --git a/sitemodules/profiles/manifests/icinga2_agent.pp b/sitemodules/profiles/manifests/icinga2_agent.pp
index dd7ef8c..58a7a36 100644
--- a/sitemodules/profiles/manifests/icinga2_agent.pp
+++ b/sitemodules/profiles/manifests/icinga2_agent.pp
@@ -45,12 +45,14 @@ class profiles::icinga2_agent (
group => 'nagios',
mode => '0700',
}
- #exec { '/bin/sh /var/lib/icinga2/setup_agent.sh':
- # creates => "/etc/icinga2/pki/${::fqdn}.key",
- # require => [
- # File['/var/lib/icinga2/setup_agent.sh'],
- # File['/etc/icinga2/pki/ca.crt'],
- # Package['icinga2'],
- # ],
- #}
+ exec { '/bin/sh /var/lib/icinga2/setup_agent.sh':
+ creates => "/etc/icinga2/pki/${::fqdn}.key",
+ require => [
+ File['/var/lib/icinga2/setup_agent.sh'],
+ File['/var/lib/icinga2/certs/ca.crt'],
+ File["/var/lib/icinga2/certs/${::profiles::icinga2_common::master_host}.crt"],
+ Package['icinga2'],
+ ],
+ notify => Service['icinga2'],
+ }
}