puppet-magnum/manifests/certificates.pp
Takashi Kajinami f542429fe9 Add support for [certificates] storage_path option
... and also add unit test coverage of the certificates class.

Change-Id: Ice02e476895408a9373741b7395f28771e7109ad
2024-05-07 00:31:49 +09:00

29 lines
671 B
Puppet

# == Class: magnum::certificates
#
# Manages the magnum certificate manager plugin
#
# === Parameters:
#
# [*cert_manager_type*]
# (optional) Certificate Manager plugin.
# Defaults to $facts['os_service_default']
#
# [*storage_path*]
# (optional) Absolute path of the certificate storage directory.
# Defaults to $facts['os_service_default']
#
class magnum::certificates (
$cert_manager_type = $facts['os_service_default'],
$storage_path = $facts['os_service_default'],
) {
include magnum::deps
magnum_config {
'certificates/cert_manager_type': value => $cert_manager_type;
'certificates/storage_path': value => $storage_path;
}
}