Puppet Class: prometheus::blackbox_exporter

Defined in:
modules/prometheus/manifests/blackbox_exporter.pp

Overview



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'modules/prometheus/manifests/blackbox_exporter.pp', line 7

class prometheus::blackbox_exporter{
    require_package('prometheus-blackbox-exporter')

    file { '/etc/prometheus/blackbox.yml':
        ensure  => present,
        mode    => '0444',
        owner   => 'root',
        group   => 'root',
        content => template('prometheus/blackbox_exporter.yml.erb'),
        notify  => Service['prometheus-blackbox-exporter'],
    }

    service { 'prometheus-blackbox-exporter':
        ensure     => running,
        hasrestart => true,
        provider   => 'systemd',
        require    => Package['prometheus-blackbox-exporter'],
    }
}