Puppet Class: role::toollabs::logging::centralserver

Defined in:
modules/role/manifests/toollabs/logging/centralserver.pp

Overview

Recevies logs from rsyslogd via UDP and stores it centrally

filtertags: labs-project-tools



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

class role::toollabs::logging::centralserver {

    include ::toollabs::base
    include ::profile::base::firewall

    system::role { 'tools::logreceiver':
        description => 'Central syslog server',
    }

    ferm::service { 'rsyslog-receiver':
        proto   => 'udp',
        port    => 514,
        notrack => true,
    }

    labs_lvm::volume { 'syslog':
        mountat => '/srv',
    }

    class { '::rsyslog::receiver':
        require            => Labs_lvm::Volume['syslog'],
        log_retention_days => 14,
    }
}