Puppet Class: system::sysconfig::selinux

Defined in:
manifests/sysconfig/selinux.pp

Overview

Parameters:

  • config (Any) (defaults to: undef)
  • schedule (Any) (defaults to: undef)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'manifests/sysconfig/selinux.pp', line 1

class system::sysconfig::selinux (
  $config   = undef,
  $schedule = undef,
) {
  if $config {
    $selinux = $config
  }
  else {
    $selinux = hiera_hash('system::sysconfig::selinux', undef)
  }
  if $selinux {
    system::sysconfig::header { 'selinux':
      schedule => $schedule,
    }
    system::sysconfig::entry { 'selinux-state':
      file     => 'selinux',
      var      => 'SELINUX',
      val      => $selinux['state'],
      schedule => $schedule,
    }
    system::sysconfig::entry { 'selinux-type':
      file     => 'selinux',
      var      => 'SELINUXTYPE',
      val      => $selinux['type'],
      schedule => $schedule,
    }
  }
}