Puppet Class: apparmor

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

Overview

SPDX-License-Identifier: Apache-2.0

Class: apparmor

Stub class for apparmor so that other classes can define profiles and then notify service



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

class apparmor {
    ensure_packages(['apparmor'])

    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'],
    }
}