Puppet Class: mailman::selinux

Defined in:
manifests/selinux.pp

Overview

Class: mailman::selinux

Installs TE files that allow Mailman to use NFS mounts with SELinux enabled. Depends on spiette/selinux module from Puppet Forge.

Examples

include mailman::selinux

Authors

Nic Waller <code@nicwaller.com>

Copyright 2013 Nic Waller, unless otherwise noted.



18
19
20
21
22
23
24
25
26
27
28
# File 'manifests/selinux.pp', line 18

class mailman::selinux {
  selinux::module { 'mailman_allow_nfs':
    source => "puppet:///modules/${module_name}/selinux/",
    ignore => ['.svn'],
  }

  exec { 'setsebool -P httpd_use_nfs true':
    path   => '/bin:/usr/sbin',
    unless => 'getsebool httpd_use_nfs | grep on',
  }
}