Puppet Class: prometheus::node_intel_microcode

Defined in:
modules/prometheus/manifests/node_intel_microcode.pp

Overview

Parameters:

  • ensure (Wmflib::Ensure) (defaults to: 'present')
  • outfile (Pattern[/\.prom$/]) (defaults to: '/var/lib/prometheus/node.d/intel_microcode.prom')


6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'modules/prometheus/manifests/node_intel_microcode.pp', line 6

class prometheus::node_intel_microcode (
    Wmflib::Ensure $ensure = 'present',
    Pattern[/\.prom$/] $outfile = '/var/lib/prometheus/node.d/intel_microcode.prom',
) {
    require_package('iucode-tool')

    file { '/usr/local/bin/prometheus-intel-microcode':
        ensure => file,
        mode   => '0555',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/prometheus/usr/local/bin/prometheus-intel-microcode',
    }

    # Collect every hour
    cron { 'prometheus_intel_microcode':
        ensure  => $ensure,
        user    => 'root',
        minute  => '42',
        command => "/usr/local/bin/prometheus-intel-microcode ${outfile}",
    }
}