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
|
# File 'modules/grafana/manifests/grizzly.pp', line 5
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',
}
# /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',
}
}
|