Puppet Class: stackdriver::plugin::mongo
- Inherited by:
-
stackdriver::plugin::mongo::config
- Defined in:
- manifests/plugin/mongo.pp
Overview
vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 foldmethod=marker
Class: stackdriver::plugin::mongo
Enable Mongo Agent Plugin for Stackdriver Agent
Parameters
- config
-
Default - /opt/stackdriver/collectd/etc/collectd.d/mongo.conf
-
Plugin configuration file
- host
-
Default - localhost
-
Target host
- port
-
Default - 27017
-
Target port
- user
-
Default - stackdriver
-
Target user
- password
-
Default - ahzae8aiLiKoe
-
Target user password
Usage
Puppet Code
Enable Mongo plugin via Puppet CODE:
include '::stackdriver::plugin::mongo'
Hiera
Enable Mongo plugin via Hiera:
stackdriver::plugins:
- 'mongo'
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'manifests/plugin/mongo.pp', line 46
class stackdriver::plugin::mongo(
$config = '/opt/stackdriver/collectd/etc/collectd.d/mongo.conf',
$host = 'localhost',
$port = 27017,
$user = 'stackdriver',
$password = 'ahzae8aiLiKoe',
) {
validate_string ( $config )
validate_string ( $host )
validate_string ( $user )
validate_string ( $password )
#contain "${name}::install"
#class { "::${name}::config": require => Class["::${name}::install"] }
contain "${name}::config"
}
|