Defined Type: grafana::plugin

Defined in:
manifests/plugin.pp

Overview

Installs plugins for Grafana.

Examples:

Install piechart plugin

::grafana::plugin { 'grafana-piechart-panel':
  ensure => present,
}

Parameters:

  • ensure (Enum['present', 'absent', 'latest']) (defaults to: 'present')

    Standard ensurable parameter.

  • plugin (String) (defaults to: $title)

    The name of the plugin.

See Also:



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/plugin.pp', line 12

define grafana::plugin (
  Enum['present', 'absent', 'latest'] $ensure = 'present',
  String                              $plugin = $title,
) {

  if ! defined(Class['::grafana']) {
    fail('You must include the grafana base class before using any grafana defined resources')
  }

  package { $plugin:
    ensure   => $ensure,
    provider => grafana,
    notify   => Class['::grafana::service'],
  }
}