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

check_fail

Number of failures after which to consider the service down. Default: 1

Parameters:

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


19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'modules/bird/manifests/anycast_healthchecker_check.pp', line 19

define bird::anycast_healthchecker_check(
  Stdlib::IP::Address::V4::Nosubnet $address,
  String $check_cmd,
  Wmflib::Ensure $ensure = 'present',
  Integer $check_fail = 1,
  ){
  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'],
  }
}