Puppet Class: grafana::grizzly

Defined in:
modules/grafana/manifests/grizzly.pp

Overview

Parameters:

  • grafana_url (Stdlib::HTTPUrl)
  • grafana_token (Optional[String]) (defaults to: undef)


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'modules/grafana/manifests/grizzly.pp', line 4

class grafana::grizzly (
    Stdlib::HTTPUrl  $grafana_url,
    Optional[String] $grafana_token = undef,
) {

    ensure_packages('grizzly')

    file { '/etc/grafana/grizzly.env':
        owner     => grafana,
        group     => ops,
        mode      => '0660',
        show_diff => false,
        content   => template('grafana/grizzly/grizzly.env.erb'),
    }

    # Clone the grafana-grizzly repository into a /srv/grafana-grizzly
    git::clone { 'operations/grafana-grizzly':
        ensure    => 'latest',
        directory => '/srv/grafana-grizzly',
        owner     => 'root',
        group     => 'ops',
        mode      => '0440',
    }

    # /usr/local/bin/grr wrapper calls /usr/bin/grr with environment variables set
    file { '/usr/local/bin/grr':
        owner  => grafana,
        group  => ops,
        mode   => '0555',
        source => 'puppet:///modules/grafana/grr.sh',
    }

}