Defined Type: diamond::collector::servicestats

Defined in:
modules/diamond/manifests/collector/servicestats.pp

Overview

Parameters:

  • systemd_name (Any) (defaults to: $title)
  • upstart_name (Any) (defaults to: $title)
  • ensure (Any) (defaults to: 'present')


15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'modules/diamond/manifests/collector/servicestats.pp', line 15

define diamond::collector::servicestats (
    $systemd_name = $title,
    $upstart_name = $title,
    $ensure = 'present',
) {
    validate_ensure($ensure)

    include ::diamond::collector::servicestats_lib

    file { "/etc/diamond/servicestats.d/${title}.conf":
      ensure  => $ensure,
      content => "[systemd]\nname=${systemd_name}\n[upstart]\nname=${upstart_name}\n",
      owner   => 'root',
      group   => 'root',
      mode    => '0444',
    }
}