Skip to content

Commit

Permalink
Merge pull request #11 from jordiprats/master
Browse files Browse the repository at this point in the history
apparmor
  • Loading branch information
jordiprats authored Sep 28, 2018
2 parents 4f5a16c + 8a4f621 commit a0ac153
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
path => '/usr/sbin:/usr/bin:/sbin:/bin',
}

package { 'apparmor-utils':
package { $apparmor::params::packages:
ensure => 'installed',
}

Expand Down
4 changes: 3 additions & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
}
'Debian':
{
$packages = [ 'apparmor-utils' ]
case $::operatingsystem
{
'Ubuntu':
Expand All @@ -28,6 +29,7 @@
}
'Suse':
{
$packages = [ 'apparmor-utils', 'apparmor-parser' ]
case $::operatingsystem
{
'SLES':
Expand All @@ -41,7 +43,7 @@
}
'12.3':
{
$apparmor_dir = '/etc/apparmor'
$apparmor_dir = '/etc/apparmor.d'
$default_mode='complain'
}
default: { fail("Unsupported SLES version ${::operatingsystem} ${::operatingsystemrelease}") }
Expand Down

0 comments on commit a0ac153

Please sign in to comment.