Puppet Class: profile::conftool::dbctl_client

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

Overview



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

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

    ensure_packages(['python3-conftool-dbctl', 'etcd-client'])

    nrpe::plugin { 'check_dbctl_uncommitted_diffs':
        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   => '/usr/local/lib/nagios/plugins/check_dbctl_uncommitted_diffs',
        critical       => false,
        check_interval => 5,
        retry_interval => 5,
        retries        => 3,
        notes_url      => 'https://wikitech.wikimedia.org/wiki/Dbctl#Uncommitted_dbctl_diffs',
        timeout        => 20,
    }
}