Puppet Class: bird::anycast_healthchecker

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

Overview

Class: bird::anycast_healthchecker

Install and configure the base of anycast_healthchecker github.com/unixsurfer/anycast_healthchecker

  • Global configuration file

  • pid directory

  • Services checks directory

  • Log directory

  • systemd service

The actual services checks are configured with bird::anycast_healthchecker_check

Parameters:

  • bind_service (Optional[String]) (defaults to: undef)


15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'modules/bird/manifests/anycast_healthchecker.pp', line 15

class bird::anycast_healthchecker(
  Optional[String] $bind_service = undef,
){

  require_package('anycast-healthchecker')

  file { '/etc/anycast-healthchecker.conf':
      ensure  => present,
      owner   => 'bird',
      group   => 'bird',
      mode    => '0664',
      source  => 'puppet:///modules/bird/anycast-healthchecker.conf',
      require => Package['anycast-healthchecker'],

  }

  file {'/var/run/anycast-healthchecker/':
      ensure => directory,
      owner  => 'bird',
      group  => 'bird',
      mode   => '0775',
  }

  file {'/etc/anycast-healthchecker.d/':
      ensure => directory,
      owner  => 'bird',
      group  => 'bird',
      mode   => '0775',
  }

  file {'/var/log/anycast-healthchecker/':
      ensure => directory,
      owner  => 'bird',
      group  => 'bird',
      mode   => '0775',
  }

  systemd::service { 'anycast-healthchecker':
      content        => template('bird/anycast-healthchecker.service.erb'),
      require        => File['/etc/anycast-healthchecker.conf',
                            '/var/run/anycast-healthchecker/',
                            '/var/log/anycast-healthchecker/',
                            '/etc/anycast-healthchecker.d/',],
      restart        => true,
      service_params => {
          ensure     => 'running', # lint:ignore:ensure_first_param
      },
  }
}