Puppet Class: rsyslog::server

Defined in:
manifests/server.pp

Summary

Sets up the RSyslog server

Overview

This class is designed to configure the externally facing interfaces for a RSyslog system. If you do not need external connectivity, you should just use the stock “::rsyslog“ Class.

Parameters:

  • enable_firewall (Boolean) (defaults to: simplib::lookup('simp_options::firewall', { 'default_value' => false }))

    Enable the SIMP firewall rules for RSyslog

  • enable_selinux (Optional[Boolean]) (defaults to: $facts['selinux_enforced'])

    Enable the SIMP SELinux rules for RSyslog

  • enable_tcpwrappers (Boolean) (defaults to: simplib::lookup('simp_options::tcpwrappers', { 'default_value' => false }))

    Enable the SIMP TCPWrapper rules for RSyslog



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

class rsyslog::server (
  Boolean           $enable_firewall    = simplib::lookup('simp_options::firewall', { 'default_value' => false }),
  Optional[Boolean] $enable_selinux     = $facts['selinux_enforced'],
  Boolean           $enable_tcpwrappers = simplib::lookup('simp_options::tcpwrappers', { 'default_value' => false })
) {
  include '::rsyslog'

  if $enable_firewall {
    contain 'rsyslog::server::firewall'

    Class['rsyslog::service'] -> Class['rsyslog::server::firewall']
  }

  if $enable_selinux {
    contain '::rsyslog::server::selinux'

    Class['rsyslog::server::selinux'] -> Class['rsyslog::service']
  }

  if $enable_tcpwrappers {
    contain '::rsyslog::server::tcpwrappers'

    Class['rsyslog::service'] -> Class['rsyslog::server::tcpwrappers']
  }
}