Puppet Class: kafkatee

Defined in:
modules/kafkatee/manifests/init.pp

Overview

Parameters:

  • configure_rsyslog (Any) (defaults to: true)


18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'modules/kafkatee/manifests/init.pp', line 18

class kafkatee(
    $configure_rsyslog = true,
) {
    ensure_packages('kafkatee')

    file { '/etc/kafkatee':
        ensure => 'directory',
    }

    # Mask the (default) package provided systemd config
    # The "real" ones are created with instance.pp
    systemd::mask { 'kafkatee.service':  }

    if $configure_rsyslog {
        # Basic logrotate.d configuration to rotate /var/log/kafkatee.log
        logrotate::conf { 'kafkatee':
            source => 'puppet:///modules/kafkatee/kafkatee_logrotate',
        }
        # Basic rsyslog configuration to create /var/log/kafkatee.log
        rsyslog::conf { 'kafkatee':
            source   => 'puppet:///modules/kafkatee/kafkatee_rsyslog.conf',
            priority => 70,
        }
    }
}