diff options
author | Simon Deziel <simon.deziel@gmail.com> | 2012-09-04 13:41:08 -0400 |
---|---|---|
committer | Simon Deziel <simon.deziel@gmail.com> | 2012-09-04 13:41:08 -0400 |
commit | da9747888a85c01fdea5d02ae375caee91ec1dd2 (patch) | |
tree | fbbbfde84208be19c80225140414d2f494b4465f | |
parent | 00ac3a4e0f14f8104e73eb7eeab7d34c7944b23c (diff) | |
download | puppet-apparmor-da9747888a85c01fdea5d02ae375caee91ec1dd2.tar.gz puppet-apparmor-da9747888a85c01fdea5d02ae375caee91ec1dd2.tar.bz2 |
Remove the "disable" symlink if any
-rw-r--r-- | manifests/profile.pp | 6 |
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) { |