Defined Type: bird::anycast_healthchecker_check

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

Overview

Parameters:

  • address (Stdlib::IP::Address::V4::Nosubnet)
  • check_cmd (String)
  • ensure (Wmflib::Ensure) (defaults to: 'present')
  • check_fail (Integer) (defaults to: 1)
  • do_ipv6 (Boolean) (defaults to: false)
  • address_ipv6 (Optional[Stdlib::IP::Address::V6::Nosubnet]) (defaults to: undef)
  • check_cmd_ipv6 (Optional[String]) (defaults to: undef)


29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'modules/bird/manifests/anycast_healthchecker_check.pp', line 29

define bird::anycast_healthchecker_check(
  Stdlib::IP::Address::V4::Nosubnet $address,
  String $check_cmd,
  Wmflib::Ensure $ensure = 'present',
  Integer $check_fail = 1,
  Boolean $do_ipv6 = false,
  Optional[Stdlib::IP::Address::V6::Nosubnet] $address_ipv6 = undef,
  Optional[String] $check_cmd_ipv6 = undef,
  ){

  if $do_ipv6 {
    $title_ipv6 = "${title}.ipv6"
  }

  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'],
  }
}