Defined Type: bird::anycast_healthchecker_check

Defined in:
modules/bird/manifests/anycast_healthchecker_check.pp

Overview

Class: bird::anycast_healthchecker_check

Add service health check for anycast_healthchecker

Parameters

address

The VIP being monitored with this check

check_cmd

The full health check command for this VIP

ensure

Standard file ensure. Default: present

Parameters:

  • address (Stdlib::IP::Address::V4::Nosubnet)
  • check_cmd (String)
  • ensure (Wmflib::Ensure) (defaults to: 'present')


16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'modules/bird/manifests/anycast_healthchecker_check.pp', line 16

define bird::anycast_healthchecker_check(
  Stdlib::IP::Address::V4::Nosubnet $address,
  String $check_cmd,
  Wmflib::Ensure $ensure = 'present',
  ){
  file { "/etc/anycast-healthchecker.d/${title}.conf":
      ensure  => $ensure,
      owner   => 'bird',
      group   => 'bird',
      mode    => '0664',
      content => template('bird/anycast-healthchecker-check.conf.erb'),
      notify  => Service['anycast-healthchecker'],
  }
}