Puppet Class: rsyslog::server::selinux

Defined in:
manifests/server/selinux.pp

Summary

Sets up SELinux for RSyslog

Overview

**NOTE: THIS IS A [PRIVATE](github.com/puppetlabs/puppetlabs-stdlib#assert_private) CLASS**

Switches on the “nis_enabled“ SELinux Boolean since this is required for successful RSyslog connections.

Note:

This MAY not be necessary any longer and should be validated



10
11
12
13
14
15
16
17
18
19
20
21
# File 'manifests/server/selinux.pp', line 10

class rsyslog::server::selinux {
  assert_private()

  if ($facts['os']['name'] in ['RedHat','CentOS','OracleLinux']) and ($facts['os']['release']['major'] > '6') {
    if $facts['selinux_current_mode'] and $facts['selinux_current_mode'] != 'disabled' {
      selboolean { 'nis_enabled':
        persistent => true,
        value      => 'on'
      }
    }
  }
}