diff options
Diffstat (limited to 'sitemodules/profiles/manifests/icinga2_satellite.pp')
-rw-r--r-- | sitemodules/profiles/manifests/icinga2_satellite.pp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/sitemodules/profiles/manifests/icinga2_satellite.pp b/sitemodules/profiles/manifests/icinga2_satellite.pp index 82ff7f7..5c6df6f 100644 --- a/sitemodules/profiles/manifests/icinga2_satellite.pp +++ b/sitemodules/profiles/manifests/icinga2_satellite.pp @@ -24,27 +24,28 @@ # Copyright # --------- # -# Copyright 2021 Jan Dittberner +# Copyright 2021-2022 Jan Dittberner class profiles::icinga2_satellite { include 'profiles::icinga2_common' include 'profiles::icinga2_agent' - file { ['/usr/local/lib/nagios', '/usr/local/lib/nagios/plugins']: - ensure => directory, - owner => 'root', - group => 'root', - mode => '0755', - } + $cacert_class1_file = '/usr/local/share/ca-certificates/cacert_class1_X0F.crt' + $cacert_class3_file = '/usr/local/share/ca-certificates/cacert_class3_2021.crt' + file { '/usr/local/lib/nagios/plugins/check_ocsp': ensure => file, owner => 'root', group => 'root', mode => '0755', source => 'puppet:///modules/profiles/icinga2_external_commands/check_ocsp', - require => Package['ca-cacert'], + require => [ + Package['ca-certificates'], + File[$cacert_class1_file], + File[$cacert_class3_file] + ], } - package {['rsync', 'python3-nagiosplugin', 'python3-cryptography']: + package {['rsync', 'python3-cryptography']: ensure => present, } |