Daniel Pawlik 812594b6d9 puppet-watcher: Initial commit
This is the initial commit for puppet-watcher.
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: I72a2df77b202c994b24887062544918903f3631b
2016-06-02 14:30:22 +00:00

31 lines
794 B
Puppet

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