Puppet Class: rsyslog::config::pki
- Defined in:
- manifests/config/pki.pp
Overview
NOTE: THIS IS A PRIVATE CLASS
Ensures that there are PKI certificates readable by the rsyslog user in
/etc/rsyslog.d/pki
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'manifests/config/pki.pp', line 6
class rsyslog::config::pki (
$external_pki_source = simplib::lookup('simp_options::pki::source', { 'default_value' => '/etc/pki' })
){
assert_private()
if $::rsyslog::pki {
if $::rsyslog::pki == 'simp' { include '::pki' }
pki::copy { $::rsyslog::pki_base_dir:
source => $::rsyslog::external_pki_source
}
}
else {
file { "${::rsyslog::pki_base_dir}/pki":
ensure => 'directory',
owner => 'root',
group => 'root',
mode => '0640'
}
}
}
|