Defined Type: apparmor::hardlink

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

Overview

Parameters:

  • target (Any)
  • source (Any) (defaults to: $name)


7
8
9
10
11
12
13
14
# File 'modules/apparmor/manifests/hardlink.pp', line 7

define apparmor::hardlink ($target, $source = $name ) {
    exec {
        "hardlink-${name}":
            command => "ln --force ${target} ${source}",
            path    => '/usr/bin:/bin',
            unless  => "test ${source} -ef ${target}";
    }
}