Puppet Class: mistral::notifier

Defined in:
manifests/notifier.pp

Overview

Class: mistral::notifier

Configure the mistral notifier

Parameters

type

(Optional) Type of notifier. Use local to run the notifier within the engine server. Use remote if the notifier is launched as a separate server to process events. (string value) Defaults to $facts.

host

(Optional) Name of the notifier node. This can be an opaque identifier. It is not necessarily a hostname, FQDN, or IP address. (string value) Defaults to $facts.

topic

(Optional) The message topic that the notifier server listens on. (string value) Defaults to $facts.

notify_publishers

(Optional) List of publishers to publish notification. Note: This maps to the mistral config option ‘notify` but this is reserved in Puppet. (list of dicts) Defaults to $facts.

Parameters:

  • type (Any) (defaults to: $facts['os_service_default'])
  • host (Any) (defaults to: $facts['os_service_default'])
  • topic (Any) (defaults to: $facts['os_service_default'])
  • notify_publishers (Any) (defaults to: $facts['os_service_default'])


32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'manifests/notifier.pp', line 32

class mistral::notifier(
  $type              = $facts['os_service_default'],
  $host              = $facts['os_service_default'],
  $topic             = $facts['os_service_default'],
  $notify_publishers = $facts['os_service_default'],
) {

  include mistral::deps
  include mistral::params

  mistral_config {
    'notifier/type':   value => $type;
    'notifier/host':   value => $host;
    'notifier/topic':  value => $topic;
    'notifier/notify': value => $notify_publishers;
  }
}