Defined Type: stackdriver::plugin

Defined in:
manifests/plugin.pp

Overview

vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 foldmethod=marker

Define: stackdriver::plugin

Loads a Plugin for the Stackdriver Agent

NOTE: plugin configuration parameters should be defined via Hiera

Parameters


name
  • Default - NONE (REQUIRED)

  • Stackdriver plugin name

Examples:

stackdriver::plugin { 'elasticsearch': }


20
21
22
23
24
25
26
27
28
29
30
# File 'manifests/plugin.pp', line 20

define stackdriver::plugin() {

  $pclass = "::stackdriver::plugin::${name}"

  if ! defined($pclass) {
    fail("Unknown Stackdriver Agent plugin ${name}")
  }

  include $pclass

}