From b41c9e37e1f81a723164b65fd5790bf4e058f52f Mon Sep 17 00:00:00 2001 From: Jordi Prats Date: Fri, 28 Sep 2018 15:48:41 +0200 Subject: [PATCH 1/2] dir --- manifests/params.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 7117748..e4d1397 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -41,7 +41,7 @@ } '12.3': { - $apparmor_dir = '/etc/apparmor' + $apparmor_dir = '/etc/apparmor.d' $default_mode='complain' } default: { fail("Unsupported SLES version ${::operatingsystem} ${::operatingsystemrelease}") } From 8a4f621270ab0728c307c96b42deae7432fb41ea Mon Sep 17 00:00:00 2001 From: Jordi Prats Date: Fri, 28 Sep 2018 15:52:52 +0200 Subject: [PATCH 2/2] fuck sles --- manifests/init.pp | 2 +- manifests/params.pp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 737ba93..545b4ee 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -8,7 +8,7 @@ path => '/usr/sbin:/usr/bin:/sbin:/bin', } - package { 'apparmor-utils': + package { $apparmor::params::packages: ensure => 'installed', } diff --git a/manifests/params.pp b/manifests/params.pp index e4d1397..e1732a0 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -8,6 +8,7 @@ } 'Debian': { + $packages = [ 'apparmor-utils' ] case $::operatingsystem { 'Ubuntu': @@ -28,6 +29,7 @@ } 'Suse': { + $packages = [ 'apparmor-utils', 'apparmor-parser' ] case $::operatingsystem { 'SLES':