Resource Type: grafana_plugin

Defined in:
lib/puppet/type/grafana_plugin.rb
Providers:
grafana_cli

Overview

manages grafana plugins

Examples:

Install a grafana plugin

grafana_plugin { 'grafana-simple-json-datasource': }

Install a grafana plugin from different repo

grafana_plugin { 'grafana-simple-json-datasource':
  ensure => 'present',
  repo   => 'https://nexus.company.com/grafana/plugins',
}

Install a grafana plugin from a plugin url

grafana_plugin { 'grafana-example-custom-plugin':
  ensure     => 'present',
  plugin_url => 'https://github.com/example/example-custom-plugin/zipball/v1.0.0'
}

Uninstall a grafana plugin

grafana_plugin { 'grafana-simple-json-datasource':
  ensure => 'absent',
}

Show resources

$ puppet resource grafana_plugin

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent

Parameters

  • name (namevar)

    The name of the plugin to enable

    Supported values:
    • %r{^\S+$}
  • plugin_url

    Full url to the plugin zip file

  • provider

    The specific backend to use for this ‘grafana_plugin` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • repo

    The URL of an internal plugin server