Puppet Class: watcher::config
- Defined in:
- manifests/config.pp
Overview
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.
23 24 25 26 27 28 29 30 31 32 |
# File 'manifests/config.pp', line 23
class watcher::config (
$watcher_config = {},
) {
include watcher::deps
validate_legacy(Hash, 'validate_hash', $watcher_config)
create_resources('watcher_config', $watcher_config)
}
|