Puppet Class: profile::toolforge::prometheus_fixup

Defined in:
modules/profile/manifests/toolforge/prometheus_fixup.pp

Overview

To be used on deprecated roles that are in the process of being refactored.

Parameters:

  • prometheus_nodes (Array[Stdlib::Fqdn]) (defaults to: lookup('prometheus_nodes'))


2
3
4
5
6
7
8
9
10
11
12
# File 'modules/profile/manifests/toolforge/prometheus_fixup.pp', line 2

class profile::toolforge::prometheus_fixup (
    Array[Stdlib::Fqdn] $prometheus_nodes = lookup('prometheus_nodes')
) {
    $prometheus_hosts = join($prometheus_nodes, ' ')
    # So prometheus blackbox exporter can monitor ssh
    ferm::service { 'ssh-prometheus':
        proto  => 'tcp',
        port   => '22',
        srange => "@resolve((${prometheus_hosts}))",
    }
}