Puppet Class: sensu::api

Defined in:
manifests/api.pp

Summary

Manage Sensu API

Overview

Class to manage the Sensu API.

Examples:

include sensu::api


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/api.pp', line 8

class sensu::api {
  include sensu

  sensu_api_config { 'sensu':
    url                 => $sensu::api_url,
    username            => 'admin',
    password            => $sensu::password,
    validate_namespaces => $sensu::validate_namespaces,
  }

  if $sensu::validate_api {
    sensu_api_validator { 'sensu':
      ensure           => 'present',
      sensu_api_server => $sensu::api_host,
      sensu_api_port   => $sensu::api_port,
      use_ssl          => $sensu::use_ssl,
    }
  }
}