Puppet Class: beats::metricbeat

Defined in:
manifests/metricbeat.pp

Summary

Install and manage metricbeat service and configuration file

Overview

Examples:

class { beats::metricbeat:
  version => '7.17',
}

Parameters:

  • version (String)

    The version of the beat to install

  • checksum (String) (defaults to: 'auto')

    The SHA-512 checksum of the Debian package or “auto”

  • arch (String) (defaults to: $architecture)

    The architecture of the beat to download

  • service_ensure (String) (defaults to: 'running')
  • service_atboot (Boolean) (defaults to: true)


16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'manifests/metricbeat.pp', line 16

class beats::metricbeat (
  String  $version,
  String  $checksum       = 'auto',
  String  $arch           = $architecture,
  String  $service_ensure = 'running',
  Boolean $service_atboot = true,
) {
  include beats::config::metricbeat

  case $facts['os']['family'] {
    'Debian': { include beats::install::debian::metricbeat }
    default: { err("Class Beats::metricbeat can't manage the OS family named ${facts['os']['family']}") }
  }
}