puppet-murano/manifests/config.pp
Sebastien Badia b46a7b34c0 Introduce murano:config to manage custom options
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
2015-10-28 14:56:32 +09:00

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)
}