
the validate_legacy function is marked for deprecation in v9.0.0 from puppetlabs-stdlib. Change-Id: I5fa76ea9c27c51d98f07274c071563251f5c0e4e
31 lines
790 B
Puppet
31 lines
790 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 (
|
|
Hash $watcher_config = {},
|
|
) {
|
|
|
|
include watcher::deps
|
|
|
|
create_resources('watcher_config', $watcher_config)
|
|
}
|