Puppet Class: kafkatee

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

Overview

Parameters:

  • configure_rsyslog (Any) (defaults to: true)


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

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

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

    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,
        }
    }
}