Puppet Class: profile::prometheus::rsyncd

Defined in:
modules/profile/manifests/prometheus/rsyncd.pp

Overview

Used for migrations / hardware refresh, but not continuously

Parameters:

  • prometheus_nodes (Array[Stdlib::Host]) (defaults to: lookup('prometheus_nodes'))
  • ensure (Wmflib::Ensure) (defaults to: lookup('profile::prometheus::rsyncd::ensure'))


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'modules/profile/manifests/prometheus/rsyncd.pp', line 2

class profile::prometheus::rsyncd (
    Array[Stdlib::Host] $prometheus_nodes = lookup('prometheus_nodes'),
    Wmflib::Ensure $ensure = lookup('profile::prometheus::rsyncd::ensure'),
) {
    class {'rsync::server':
        ensure_service => stdlib::ensure($ensure, 'service'),
    }

    rsync::server::module { 'prometheus-data':
        ensure         => $ensure,
        path           => '/srv/prometheus',
        uid            => 'prometheus',
        gid            => 'prometheus',
        hosts_allow    => $prometheus_nodes,
        auto_ferm      => true,
        auto_ferm_ipv6 => true,
    }
}