Files
puppet-cloudkitty/manifests/config.pp
Xingchao Yu 78f52ecfac This is the initial commit for puppet-cloudkitty.
It has been automatically generated using cookiecutter[1] and msync[2].

[1] https://github.com/openstack/puppet-openstack-cookiecutter
[2] https://github.com/openstack/puppet-modulesync-configs

Change-Id: I43e8be43f6c77d55ff0c5879344020942eb9cf43
2016-10-20 10:53:32 +08:00

31 lines
827 B
Puppet

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