Puppet Class: apparmor

Defined in:
modules/apparmor/manifests/init.pp

Overview



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'modules/apparmor/manifests/init.pp', line 7

class apparmor {

    package { 'apparmor':
        ensure => present,
    }

    service { 'apparmor':
        ensure     => running,
        hasstatus  => true,
        hasrestart => true,
        require    => Package['apparmor'],
    }

    # This directory is only created when some
    # profiles are installed by default, but we
    # forcibly create it in case we need to
    # install one ourselves in it
    file { '/etc/apparmor.d/abstractions':
        ensure  => directory,
        owner   => 'root',
        group   => 'root',
        mode    => '0755',
        require => Package['apparmor'],
    }

}