Puppet Class: cfssl::multirootca
- Defined in:
- modules/cfssl/manifests/multirootca.pp
Summary
configure cfssl multirootcaOverview
SPDX-License-Identifier: Apache-2.0
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'modules/cfssl/manifests/multirootca.pp', line 11
class cfssl::multirootca (
Wmflib::Ensure $ensure = 'present',
Stdlib::Host $host = '127.0.0.1',
Stdlib::Port $port = 8888,
Boolean $enable_monitoring = false,
Boolean $monitoring_critical = false,
Optional[Stdlib::Unixpath] $tls_cert = undef,
Optional[Stdlib::Unixpath] $tls_key = undef,
Hash[Cfssl::Ca_name, Cfssl::CA::Config] $signers = {},
) {
include cfssl
$config_file = "${cfssl::conf_dir}/multiroot.conf"
$service_name = 'cfssl-multirootca'
file {$config_file:
ensure => $ensure,
content => template('cfssl/multiroot.conf.erb'),
notify => Service[$service_name],
}
file {'/usr/local/sbin/cfssl-certs':
ensure => file,
owner => 'root',
group => 'root',
mode => '0500',
source => 'puppet:///modules/cfssl/cfssl_certs.py',
}
systemd::service {'cfssl-multirootca':
monitoring_enabled => $enable_monitoring,
monitoring_critical => $monitoring_critical,
monitoring_notes_url => 'https://wikitech.wikimedia.org/wiki/PKI',
content => template('cfssl/cfssl-multirootca.service.erb'),
restart => true,
}
}
|