Puppet Class: profile::rsyslog::udp_localhost_compat

Defined in:
modules/profile/manifests/rsyslog/udp_localhost_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_localhost_compat_port', {'default_value' => 10514}))
  • queue_enabled_sites (Array[String]) (defaults to: lookup('profile::rsyslog::kafka_queue_enabled_sites', {'default_value' => []}))


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

class profile::rsyslog::udp_localhost_compat (
    Array $logging_kafka_brokers = lookup('profile::rsyslog::kafka_shipper::kafka_brokers'),
    Integer $port = lookup('profile::rsyslog::udp_localhost_compat_port', {'default_value' => 10514}),
    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,
    }

    include profile::base::certificates
    $trusted_ca_path = $profile::base::certificates::trusted_ca_path
    rsyslog::conf { 'udp_localhost_compat':
        content  => template('profile/rsyslog/udp_localhost_compat.conf.erb'),
        priority => 50,
    }
}