summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 4f562c1a4b0474dfb505a96cd99bd07c44c3f606 (plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# == Class: apparmor
#
# Install the Apparmor package and make sure /etc/apparmor.d/local exists.
#
# Note that custom Ubuntu profiles are availables at:
#   https://github.com/simondeziel/aa-profiles
# and should be copied/cloned to the "files" directory unless you want to
# use your own custom modules in that same directory.
#
# === Parameters
#
# None.
#
# === Variables
#
# None.
#
# === Examples
#
# include apparmor
#
# === Authors
#
# Simon Deziel <simon.deziel@gmail.com>
#
# === Copyright
#
# Copyright 2012 Simon Deziel
#
class apparmor {

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

  $apparmor_d = '/etc/apparmor.d'
  file { 'apparmor.d':
    ensure  => directory,
    path    => $apparmor_d,
    owner   => 'root',
    group   => 'root',
    mode    => '0755',
    require => Package['apparmor'],
  }

  file { 'apparmor.d.local':
    ensure  => directory,
    path    => "${apparmor_d}/local",
    owner   => 'root',
    group   => 'root',
    mode    => '0755',
    require => Package['apparmor'],
  }
}