Puppet Class: profile::rsyslog::udp_json_logback_compat

Defined in:
modules/profile/manifests/rsyslog/udp_json_logback_compat.pp

Overview

Parameters:

  • logging_kafka_brokers (Array) (defaults to: lookup('profile::rsyslog::kafka_shipper::kafka_brokers'))
  • port (Integer) (defaults to: lookup('profile::rsyslog::udp_json_logback_compat_port', {'default_value' => 11514}))
  • queue_enabled_sites (Array[String]) (defaults to: lookup('profile::rsyslog::kafka_queue_enabled_sites', {'default_value' => []}))


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'modules/profile/manifests/rsyslog/udp_json_logback_compat.pp', line 7

class profile::rsyslog::udp_json_logback_compat(
    Array $logging_kafka_brokers = lookup('profile::rsyslog::kafka_shipper::kafka_brokers'),
    Integer $port = lookup('profile::rsyslog::udp_json_logback_compat_port', {'default_value' => 11514}),
    Array[String] $queue_enabled_sites = lookup('profile::rsyslog::kafka_queue_enabled_sites',
                                                {'default_value' => []}),
) {
    ensure_packages('rsyslog-kafka')

    $queue_size = $::site in $queue_enabled_sites ? {
        true  => 10000,
        false => 0,
    }

    rsyslog::conf { 'udp_json_logback_compat':
        content  => template('profile/rsyslog/udp_json_logback_compat.conf.erb'),
        priority => 50,
    }
}