Puppet Class: profile::conftool::dbctl_client

Defined in:
modules/profile/manifests/conftool/dbctl_client.pp

Overview



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

class profile::conftool::dbctl_client() {
    require ::profile::conftool::client

    require_package('python3-conftool-dbctl', 'etcd-client')

    # Set up a check for uncommitted diffs
    $uncom_diffs_filename = '/usr/local/lib/nagios/plugins/check_dbctl_uncommitted_diffs'

    file { $uncom_diffs_filename:
        ensure => present,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/profile/conftool/check_dbctl_uncommitted_diffs.sh'
    }

    nrpe::monitor_service { 'dbctl_uncommitted_diffs':
        ensure         => present,
        description    => 'Uncommitted dbctl configuration changes, check dbctl config diff',
        nrpe_command   => $uncom_diffs_filename,
        critical       => false,
        check_interval => 5,
        retry_interval => 5,
        retries        => 3,
        notes_url      => 'https://wikitech.wikimedia.org/wiki/Dbctl#Uncommitted_dbctl_diffs',
        timeout        => 20,
    }
}