Puppet Class: prometheus::mysqld_exporter::common

Defined in:
modules/prometheus/manifests/mysqld_exporter/common.pp

Overview



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'modules/prometheus/manifests/mysqld_exporter/common.pp', line 6

class prometheus::mysqld_exporter::common {
    ensure_packages('prometheus-mysqld-exporter')

    file { '/etc/default/prometheus':
        ensure => directory,
        mode   => '0550',
        owner  => 'prometheus',
        group  => 'prometheus',
    }

    systemd::unit { 'prometheus-mysqld-exporter@':
        ensure  => present,
        content => systemd_template('prometheus-mysqld-exporter@'),
        require => Package['prometheus-mysqld-exporter'],
    }
}