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
37
38
|
# File 'modules/prometheus/manifests/assemble_config.pp', line 6
class prometheus::assemble_config {
# This class is used by pint, which can run with Thanos only
# (i.e. Prometheus is not installed)
if (!defined(File['/etc/prometheus'])) {
file { '/etc/prometheus':
ensure => directory,
mode => '0555',
owner => 'root',
group => 'root',
}
}
file { '/usr/local/bin/prometheus-assemble-config':
ensure => present,
mode => '0555',
owner => 'root',
group => 'root',
source => 'puppet:///modules/prometheus/assemble_config.py',
}
file { '/etc/prometheus/assemble-config.yaml':
ensure => present,
mode => '0555',
owner => 'root',
group => 'root',
source => 'puppet:///modules/prometheus/assemble-config.yaml',
}
# Old file location
file { '/usr/local/bin/blackbox-exporter-assemble':
ensure => absent,
}
}
|