a1f995a738
the validate_legacy function is marked for deprecation in v9.0.0 from puppetlabs-stdlib. Change-Id: I61801a0dcebd2d09e45c0a96195e244fad8c0906
46 lines
1.4 KiB
Puppet
46 lines
1.4 KiB
Puppet
# == Class: murano::config
|
|
#
|
|
# This class is used to manage arbitrary murano configurations.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*murano_config*]
|
|
# (optional) Allow configuration of arbitrary murano configurations.
|
|
# The value is an hash of murano_config resources. Example:
|
|
# { 'DEFAULT/foo' => { value => 'fooValue'},
|
|
# 'DEFAULT/bar' => { value => 'barValue'}
|
|
# }
|
|
# In yaml format, Example:
|
|
# murano_config:
|
|
# DEFAULT/foo:
|
|
# value: fooValue
|
|
# DEFAULT/bar:
|
|
# value: barValue
|
|
#
|
|
# [*murano_cfapi_config*]
|
|
# (optional) Allow configuration of CFAPI Murano service
|
|
#
|
|
# [*murano_paste_config*]
|
|
# (optional) Allow configuration of arbitrary murano paste configurations.
|
|
#
|
|
# [*murano_cfapi_paste_config*]
|
|
# (optional) Allow configuration of CFAPI Murano paste configurations.
|
|
#
|
|
# NOTE: The configuration MUST NOT be already handled by this module
|
|
# or Puppet catalog compilation will fail with duplicate resources.
|
|
#
|
|
class murano::config (
|
|
Hash $murano_config = {},
|
|
Hash $murano_cfapi_config = {},
|
|
Hash $murano_paste_config = {},
|
|
Hash $murano_cfapi_paste_config = {}
|
|
) {
|
|
|
|
include murano::deps
|
|
|
|
create_resources('murano_config', $murano_config)
|
|
create_resources('murano_cfapi_config', $murano_cfapi_config)
|
|
create_resources('murano_paste_ini_config', $murano_paste_config)
|
|
create_resources('murano_cfapi_paste_ini_config', $murano_cfapi_paste_config)
|
|
}
|