Puppet Class: st2::notifier

Inherits:
st2
Defined in:
manifests/notifier.pp

Summary

Manages the st2notifier service (Orquesta)

Overview

Normally this class is instantiated by st2::profile::fullinstall. However, advanced users can instantiate this class directly to configure and manage just the st2notifier service on a single node. Parameters for this class mirror the parameters in the st2 config.

Examples:

Basic usage

include st2::notifier

Parameters:

  • notifier_num (Any) (defaults to: $st2::notifier_num)

    The number of notifiers to have in an active active state

  • notifier_services (Any) (defaults to: $st2::params::notifier_services)

    Name of all the notifier services

See Also:



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'manifests/notifier.pp', line 18

class st2::notifier (
  $notifier_num      = $st2::notifier_num,
  $notifier_services = $st2::params::notifier_services,
) inherits st2 {

  $_logger_config = $st2::syslog ? {
    true    => 'syslog',
    default => 'logging',
  }

  ########################################
  ## Config
  ini_setting { 'notifier_logging':
    ensure  => present,
    path    => '/etc/st2/st2.conf',
    section => 'notifier',
    setting => 'logging',
    value   => "/etc/st2/${_logger_config}.notifier.conf",
    tag     => 'st2::config',
  }

  st2::service { 'st2notifier':
    service_name      => 'st2notifier',
    service_num       => $notifier_num,
    existing_services => $notifier_services,
  }
}