puppet-barbican/manifests/config.pp
Takashi Kajinami 0a1c988b0f Rename api_config parameter
The parameter is not actually specific to the api service and affects
the global barbican.conf .

Change-Id: Ie7809a61948742c56b15c4b38480cf2a158898a3
2024-11-18 09:15:51 +00:00

50 lines
1.4 KiB
Puppet

# == Class: barbican::config
#
# This class is used to manage arbitrary barbican configurations.
#
# example xxx_config
# (optional) Allow configuration of arbitrary barbican configurations.
# The value is an hash of barbican_config resources. Example:
# { 'DEFAULT/foo' => { value => 'fooValue'},
# 'DEFAULT/bar' => { value => 'barValue'}
# }
# In yaml format, Example:
# barbican_config:
# DEFAULT/foo:
# value: fooValue
# DEFAULT/bar:
# value: barValue
#
# === Parameters
#
# [*barbican_config*]
# (optional) Allow configuration of barbican.conf configurations.
#
# [*api_paste_ini_config*]
# (optional) Allow configuration of barbican-api-paste.ini configurations.
#
# DEPRECATED PARAMETERS
#
# [*api_config*]
# (optional) Allow configuration of barbican.conf configurations.
#
# NOTE: The configuration MUST NOT be already handled by this module
# or Puppet catalog compilation will fail with duplicate resources.
#
class barbican::config (
Hash $barbican_config = {},
Hash $api_paste_ini_config = {},
Optional[Hash] $api_config = undef,
) {
include barbican::deps
if $api_config {
warning('The api_config parametr is deprecated. Use the barbican_config parameter instead')
create_resources('barbican_config', $api_config)
}
create_resources('barbican_config', $barbican_config)
create_resources('barbican_api_paste_ini', $api_paste_ini_config)
}