Puppet Class: labstore::monitoring::exports

Defined in:
modules/labstore/manifests/monitoring/exports.pp

Overview

Parameters:

  • contact_groups (String) (defaults to: 'wmcs-team,admins')
  • drbd_role (String) (defaults to: 'primary')


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'modules/labstore/manifests/monitoring/exports.pp', line 1

class labstore::monitoring::exports(
    String $contact_groups='wmcs-team,admins',
    String $drbd_role='primary',
    ) {
    # This really doesn't need to be running on the secondary.
    if $drbd_role == 'primary' {
        nrpe::monitor_systemd_unit_state { 'nfs-exportd':
            description   => 'Ensure NFS exports are maintained for new instances with NFS',
            contact_group => $contact_groups,
        }
    } else {
        # When switching roles, this may cause some alert noise, so please downtime.
        nrpe::monitor_systemd_unit_state { 'nfs-exportd':
            ensure        => absent,
            description   => 'Ensure NFS exports are maintained for new instances with NFS',
            contact_group => $contact_groups,
        }
    }
}