Defined Type: keepalived::vrrp::sync_group

Defined in:
manifests/vrrp/sync_group.pp

Summary

Configure the group for instance

Overview

Parameters:

  • group (Any)

    Define vrrp instances to group (Array)

  • notify_script_master (Any) (defaults to: undef)

    Define the notify master script.

  • track_script (Array[String]) (defaults to: [])

    Define which script to run to track service states.

  • track_process (Array[String]) (defaults to: [])

    Define which process check to run to track processes.

  • notify_script_backup (Any) (defaults to: undef)

    Define the notify backup script.

  • notify_script_fault (Any) (defaults to: undef)

    Define the notify fault script.

  • notify_script (Any) (defaults to: undef)

    Define the notify script.

  • notify_script_master_rx_lower_pri (Optional[Stdlib::Absolutepath]) (defaults to: undef)

    Define the notify_master_rx_lower_pri script. This is executed if a master receives an advert with priority lower than the master’s advert.

  • smtp_alert (Any) (defaults to: undef)

    Send email on status change

  • nopreempt (Any) (defaults to: undef)
  • global_tracking (Boolean) (defaults to: false)
  • track_interface (Optional[Variant[String, Array[String]]]) (defaults to: undef)

    Define which interface(s) to monitor. Go to FAULT state if one of these interfaces goes down. May be specified as either:

    a) interface name
    b) array of interfaces names
    


37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'manifests/vrrp/sync_group.pp', line 37

define keepalived::vrrp::sync_group (
  $group,
  Optional[Stdlib::Absolutepath] $notify_script_master_rx_lower_pri = undef,
  Array[String] $track_script                                       = [],
  Array[String] $track_process                                      = [],
  $notify_script_master                                             = undef,
  $notify_script_backup                                             = undef,
  $notify_script_fault                                              = undef,
  $notify_script                                                    = undef,
  $smtp_alert                                                       = undef,
  $nopreempt                                                        = undef,
  Boolean $global_tracking                                          = false,
  Optional[Variant[String, Array[String]]] $track_interface         = undef,
) {
  $_name = regsubst($name, '[:\/\n]', '', 'G')

  concat::fragment { "keepalived.conf_vrrp_sync_group_${_name}":
    target  => "${keepalived::config_dir}/keepalived.conf",
    content => template('keepalived/vrrp_sync_group.erb'),
    order   => '050',
  }
}