33c0956a92
This is the initial commit for puppet-zaqar. 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: Iaca8f89dd22320ec0e08bfb8ec9b5912ad68c9fb Co-Authored-By: yguenane@redhat.com
31 lines
772 B
Puppet
31 lines
772 B
Puppet
# == Class: zaqar::config
|
|
#
|
|
# This class is used to manage arbitrary zaqar configurations.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*zaqar_config*]
|
|
# (optional) Allow configuration of arbitrary zaqar configurations.
|
|
# The value is an hash of zaqar_config resources. Example:
|
|
# { 'DEFAULT/foo' => { value => 'fooValue'},
|
|
# 'DEFAULT/bar' => { value => 'barValue'}
|
|
# }
|
|
# In yaml format, Example:
|
|
# zaqar_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 zaqar::config (
|
|
$zaqar_config = {},
|
|
) {
|
|
|
|
validate_hash($zaqar_config)
|
|
|
|
create_resources('zaqar_config', $zaqar_config)
|
|
}
|