puppet-vitrage/manifests/config.pp

31 lines
794 B
Puppet

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