Puppet Class: profile::smokeping

Defined in:
modules/profile/manifests/smokeping.pp

Overview

Parameters:

  • active_server (Any) (defaults to: lookup('netmon_server'))
  • passive_server (Any) (defaults to: lookup('netmon_server_failover'))


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'modules/profile/manifests/smokeping.pp', line 2

class profile::smokeping (
    $active_server = lookup('netmon_server'),
    $passive_server = lookup('netmon_server_failover'),
){

    class{ '::smokeping':
        active_server => $active_server,
    }

    class{ '::smokeping::web': }

    rsync::quickdatacopy { 'var-lib-smokeping':
        ensure              => present,
        auto_sync           => true,
        source_host         => $active_server,
        dest_host           => $passive_server,
        module_path         => '/var/lib/smokeping',
        server_uses_stunnel => true,  # testing for T237424
    }

    ferm::service { 'smokeping-http':
        proto => 'tcp',
        port  => '80',
    }

    ferm::service { 'smokeping-https':
        proto => 'tcp',
        port  => '443',
    }

    backup::set { 'smokeping': }
}