Puppet Class: stackdriver::plugin::postgres
- Inherited by:
-
stackdriver::plugin::postgres::config
- Defined in:
- manifests/plugin/postgres.pp
Overview
vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 foldmethod=marker
Class: stackdriver::plugin::postgres
Enable Postgres Agent Plugin for Stackdriver Agent
Parameters
- config
-
Default - /opt/stackdriver/collectd/etc/collectd.d/postgres.conf
-
Plugin Configuration File
- dbname
-
Default - NONE (REQUIRED)
-
Target database name
- user
-
Default - stackdriver
-
Target user
- password
-
Default - xoiboov9Pai5e
-
Target user password
Usage
Puppet Code
Enable Postgres plugin via Puppet CODE:
include '::stackdriver::plugin::postgres'
Hiera
Enable Postgres plugin via Hiera:
stackdriver::plugins:
- 'postgres'
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'manifests/plugin/postgres.pp', line 42
class stackdriver::plugin::postgres(
$config = '/opt/stackdriver/collectd/etc/collectd.d/postgres.conf',
$dbname = undef, # REQUIRED Param
$user = 'stackdriver',
$password = 'xoiboov9Pai5e',
) {
Class['stackdriver'] -> Class[$name]
validate_string ( $config )
validate_string ( $dbname )
validate_string ( $user )
validate_string ( $password )
#contain "${name}::install"
#class { "::${name}::config": require => Class["::${name}::install"] }
contain "${name}::config"
}
|