Puppet Class: watchdog

Defined in:
manifests/init.pp

Overview

Installs and manages a watchdog.

Examples:

Declaring the class

include ::watchdog

Parameters:

  • manage_package (Boolean)
  • package_name (Optional[String])

    The name of the package.

  • period (Integer[0])
  • service_enable (Boolean)
  • service_ensure (Stdlib::Ensure::Service)
  • service_manage (Boolean)

    Whether to manage the service.

  • service_name (String)

    Name of the service.

  • interfaces (Array[String]) (defaults to: [])

    Array of network interfaces to watch, empty by default.

  • pings (Array[Stdlib::IP::Address::NoSubnet]) (defaults to: [])

    Array of network addresess to ping, empty by default.



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'manifests/init.pp', line 15

class watchdog (
  Boolean                              $manage_package,
  Optional[String]                     $package_name,
  Integer[0]                           $period,
  Boolean                              $service_enable,
  Stdlib::Ensure::Service              $service_ensure,
  Boolean                              $service_manage,
  String                               $service_name,
  Array[String]                        $interfaces     = [],
  Array[Stdlib::IP::Address::NoSubnet] $pings          = [],
) {

  contain watchdog::install
  contain watchdog::config
  contain watchdog::service

  Class['watchdog::install'] -> Class['watchdog::config']
    ~> Class['watchdog::service']
}