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