Files
puppet-gnocchi/manifests/config.pp
Tobias Urdin 3a2a519bb2 Convert all class usage to relative names
Change-Id: Id33f4d13a4547734f36a6437e0d0e6b1db37a9a1
2019-12-08 23:07:12 +01:00

33 lines
851 B
Puppet

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