summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSimon Deziel <simon.deziel@gmail.com>2012-09-04 13:41:08 -0400
committerSimon Deziel <simon.deziel@gmail.com>2012-09-04 13:41:08 -0400
commitda9747888a85c01fdea5d02ae375caee91ec1dd2 (patch)
treefbbbfde84208be19c80225140414d2f494b4465f /manifests
parent00ac3a4e0f14f8104e73eb7eeab7d34c7944b23c (diff)
downloadpuppet-apparmor-da9747888a85c01fdea5d02ae375caee91ec1dd2.tar.gz
puppet-apparmor-da9747888a85c01fdea5d02ae375caee91ec1dd2.tar.bz2
Remove the "disable" symlink if any
Diffstat (limited to 'manifests')
-rw-r--r--manifests/profile.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/profile.pp b/manifests/profile.pp
index 931a74d..10f6f51 100644
--- a/manifests/profile.pp
+++ b/manifests/profile.pp
@@ -70,6 +70,12 @@ define apparmor::profile (
notify => Exec["aa-enable-${name}"],
}
+ # Remove the "disable" symlink if any
+ file { "${apparmor_d}/disable/${name}":
+ ensure => absent,
+ notify => Exec["aa-enable-${name}"],
+ }
+
if ($local_source == true) {
$real_local_source = "${default_base}/local/${name}"
} elsif ($local_source == false) {