Puppet Class: stackdriver::plugin::zookeeper
- Inherited by:
-
stackdriver::plugin::zookeeper::config
- Defined in:
- manifests/plugin/zookeeper.pp
Overview
vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 foldmethod=marker
Class: stackdriver::plugin::zookeeper
Enable Zookeeper Agent Plugin for Stackdriver Agent
Parameters
- config
-
Default - /opt/stackdriver/collectd/etc/collectd.d/zookeeper.conf
-
Plugin configuration file
- host
-
Default - localhost
-
Zookeeper instance host
- port
-
Default - 2181
-
Zookeeper instance port
Usage
Puppet Code
Enable Zookeeper plugin via Puppet CODE:
include '::stackdriver::plugin::zookeeper'
Hiera
Enable Zookeeper plugin via Hiera:
stackdriver::plugins:
- 'zookeeper'
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'manifests/plugin/zookeeper.pp', line 38
class stackdriver::plugin::zookeeper(
$config = '/opt/stackdriver/collectd/etc/collectd.d/zookeeper.conf',
$host = 'localhost',
$port = '2181'
) {
Class['stackdriver'] -> Class[$name]
validate_string ( $config )
validate_string ( $host )
validate_string ( $port )
contain "${name}::config"
}
|