b46a7b34c0
This murano::config is aim to use murano config resources to manage custom configurations in murano config files. This will make end user easy to add their own custom options in Hiera data. Change-Id: I256b52ad242d99114cf41637b4ff14170d7f4595
31 lines
790 B
Puppet
31 lines
790 B
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
|
|
#
|
|
# 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 = {},
|
|
) {
|
|
|
|
validate_hash($murano_config)
|
|
|
|
create_resources('murano_config', $murano_config)
|
|
}
|