Puppet Class: st2::workflowengine

Inherits:
st2
Defined in:
manifests/workflowengine.pp

Summary

Manages the st2workflowengine 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 st2workflowengine service on a single node. Parameters for this class mirror the parameters in the st2 config.

Examples:

Basic usage

include st2::workflowengine

Parameters:

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

    The number of workflowengines to have in an active active state

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

    Name of all the workflowengine 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
45
46
47
48
# File 'manifests/workflowengine.pp', line 18

class st2::workflowengine (
  $workflowengine_num      = $st2::workflowengine_num,
  $workflowengine_services = $st2::params::workflowengine_services,
) inherits st2 {

  # st2workflowengine was introduced in 2.8.0
  if st2::version_ge('2.8.0') {

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

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

    st2::service { 'st2workflowengine':
      service_name      => 'st2workflowengine',
      service_num       => $workflowengine_num,
      existing_services => $workflowengine_services,
    }
  }
}