puppet-swift/manifests/config.pp
Yanis Guenane f69c046fe1 Add swift::config class
Other modules provide an X::config class to be able to specify
parameters that are not yet part of the module. Swift was missing this
feature. This commit aims to add it for puppet-swift.

Change-Id: Ifb6f78f177d9cc721f8388290c983c49137a2557
2015-07-20 11:58:53 +02:00

31 lines
779 B
Puppet

# == Class: swift::config
#
# This class is used to manage arbitrary Swift configurations.
#
# === Parameters
#
# [*swift_config*]
# (optional) Allow configuration of arbitrary Swift configurations.
# The value is an hash of swift_config resources. Example:
# { 'DEFAULT/foo' => { value => 'fooValue'},
# 'DEFAULT/bar' => { value => 'barValue'}
# }
# In yaml format, Example:
# swift_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 swift::config (
$swift_config = {},
) {
validate_hash($swift_config)
create_resources('swift_config', $swift_config)
}