51 lines
1.6 KiB
Puppet
51 lines
1.6 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 (
|
|
$murano_config = {},
|
|
$murano_cfapi_config = {},
|
|
$murano_paste_config = {},
|
|
$murano_cfapi_paste_config = {}
|
|
) {
|
|
|
|
include murano::deps
|
|
|
|
validate_legacy(Hash, 'validate_hash', $murano_config)
|
|
validate_legacy(Hash, 'validate_hash', $murano_cfapi_config)
|
|
validate_legacy(Hash, 'validate_hash', $murano_paste_config)
|
|
validate_legacy(Hash, 'validate_hash', $murano_cfapi_paste_config)
|
|
|
|
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)
|
|
}
|