Defined Type: selinux::restorecond::fragment

Defined in:
manifests/restorecond/fragment.pp

Overview

selinux::restorecond::fragment

Parameters:

  • content (Any) (defaults to: undef)

    Fragment content (use either content or source)

  • source (Any) (defaults to: undef)

    Fragment file source (use either content or source)

  • order (Any) (defaults to: '10')

    Order of fragment



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'manifests/restorecond/fragment.pp', line 6

define selinux::restorecond::fragment (
  $content = undef,
  $source = undef,
  $order = '10'
) {

  if !defined(Class['selinux::restorecond']) {
    fail('You must include the restorecond base class before using any restorecond defined resources')
  }

  concat::fragment{ "restorecond_conf_${name}":
    target  => $selinux::restorecond::config_file,
    content => $content,
    source  => $source,
    order   => $order,
  }
}