Puppet Class: profile::prometheus::openldap_exporter

Defined in:
modules/profile/manifests/prometheus/openldap_exporter.pp

Overview

Parameters:

  • monitor_pass (String) (defaults to: lookup('profile::prometheus::openldap_exporter::monitor_pass'))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'modules/profile/manifests/prometheus/openldap_exporter.pp', line 1

class profile::prometheus::openldap_exporter (
    String $monitor_pass = lookup('profile::prometheus::openldap_exporter::monitor_pass')
){

    package { 'prometheus-openldap-exporter':
        ensure => present,
    }

    file { '/etc/prometheus/openldap-exporter.yaml':
        ensure  => present,
        mode    => '0440',
        owner   => 'prometheus',
        group   => 'prometheus',
        content => template('profile/prometheus/prometheus.conf.erb'),
        notify  => Service['prometheus-openldap-exporter'],
    }

    service { 'prometheus-openldap-exporter':
        ensure  => running,
        require => File['/etc/prometheus/openldap-exporter.yaml'],
    }

    profile::auto_restarts::service { 'prometheus-openldap-exporter': }
}