Puppet Class: openstack::glance::monitor

Defined in:
modules/openstack/manifests/glance/monitor.pp

Overview

Parameters:

  • active (Any)
  • contact_groups (Any) (defaults to: 'wmcs-bots,admins')


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

class openstack::glance::monitor(
    $active,
    $contact_groups='wmcs-bots,admins',
) {

    require openstack::glance::service

    # nagios doesn't take a bool
    if $active {
        $ensure = 'present'
    }
    else {
        $ensure = 'absent'
    }

    monitoring::service { 'glance-api-http':
        ensure        => $ensure,
        description   => 'glance-api http',
        check_command => 'check_http_on_port!9292',
        contact_group => $contact_groups,
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS/Admin/Troubleshooting',
    }
}