Defined Type: keepalived::vrrp::track_process

Defined in:
manifests/vrrp/track_process.pp

Summary

Configure the process tracker

Overview

Parameters:

  • proc_name (String[1])

    process name to track

  • weight (Optional[Integer[0]]) (defaults to: undef)

    The weight that should add to the instance.

  • quorum (Integer[0]) (defaults to: 1)

    Number of processes to expect running

  • delay (Optional[Integer[0]]) (defaults to: undef)

    this sets fork_delay and terminate_delay (for keepalived => 2.0.16), before terminate_delay

  • fork_delay (Optional[Integer[0]]) (defaults to: undef)

    time to delay after process quorum gained after fork before consider process up

  • terminate_delay (Optional[Integer[0]]) (defaults to: undef)

    time to delay after process quorum lost before consider process down

  • full_command (Boolean) (defaults to: false)

    Match entire process cmdline

  • param_match (Optional[Enum['initial','partial']]) (defaults to: undef)

    Set inital if command has no parameters or use partial if first n parameters match



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
# File 'manifests/vrrp/track_process.pp', line 20

define keepalived::vrrp::track_process (
  String[1] $proc_name,
  Optional[Integer[0]] $weight   = undef,
  Integer[0] $quorum             = 1,
  Optional[Integer[0]] $delay    = undef,
  Optional[Integer[0]] $fork_delay = undef,
  Optional[Integer[0]] $terminate_delay = undef,
  Boolean $full_command          = false,
  Optional[Enum['initial','partial']] $param_match = undef
) {
  concat::fragment { "keepalived.conf_vrrp_track_process_${proc_name}":
    target  => "${keepalived::config_dir}/keepalived.conf",
    content => epp('keepalived/vrrp_track_process.epp', {
        'name'            => $name,
        'proc_name'       => $proc_name,
        'weight'          => $weight,
        'quorum'          => $quorum,
        'delay'           => $delay,
        'fork_delay'      => $fork_delay,
        'terminate_delay' => $terminate_delay,
        'full_command'    => $full_command,
        'param_match'     => $param_match
    }),
    order   => '020',
  }
}