puppet-oslo/manifests/key_manager.pp
Takashi Kajinami 548d68cf35 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ib0bdb6329a438ac44886ee0494d0c52ad344a1bf
2023-03-02 12:37:35 +09:00

26 lines
579 B
Puppet

# == Define: oslo::key_manager
#
# Configure key_manager options implemented in the castellan library
#
# === Parameters
#
# [*config*]
# (Optional) The resource type used to apply configuration parameters.
# Defaults to $name
#
# [*backend*]
# (Optional) Specify the key manager implementation.
# Defaults to $facts['os_service_default']
#
define oslo::key_manager(
$config = $name,
$backend = $facts['os_service_default'],
) {
$key_manager_options = {
'key_manager/backend' => { value => $backend },
}
create_resources($config, $key_manager_options)
}