Puppet Class: stackdriver::plugin::apache
- Inherited by:
-
stackdriver::plugin::apache::config
- Defined in:
- manifests/plugin/apache.pp
Overview
vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 foldmethod=marker
Class: stackdriver::plugin::apache
Enable Apache Agent Plugin for Stackdriver Agent
Parameters
- config
-
Default - /opt/stackdriver/collectd/etc/collectd.d/apache.conf
-
Plugin configuration file
- url
-
Default - 127.0.0.1/mod_status?auto
-
Target server URL
- user
-
Default - undef (optional)
-
Target user
- password
-
Default - undef (optional)
-
Target user password
Usage
Puppet Code
Enable Apache plugin via Puppet CODE:
include '::stackdriver::plugin::apache'
Hiera
Enable Apache plugin via Hiera:
stackdriver::plugins:
- 'apache'
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/apache.pp', line 42
class stackdriver::plugin::apache(
$config = '/opt/stackdriver/collectd/etc/collectd.d/apache.conf',
$url = 'http://127.0.0.1/mod_status?auto',
$user = undef,
$password = undef,
) {
Class['stackdriver'] -> Class[$name]
validate_string ( $config )
validate_string ( $url )
if $user { validate_string ( $user ) }
if $password { validate_string ( $password ) }
#contain "${name}::install"
#class { "::${name}::config": require => Class["::${name}::install"] }
contain "${name}::config"
}
|