made apparmor lighttpd profile suitable for both OS 18.04 and 20.04

This commit is contained in:
Maria Haider 2022-03-11 20:15:27 +01:00
parent cd8817afb6
commit 8b90248ce8
Signed by: mariah
GPG key ID: 7414A760CA747E57

View file

@ -249,7 +249,12 @@ class md_publisher(Array $allow_clients=['any'], $keyname=undef, String $dir="/v
ensure => 'link', ensure => 'link',
target => "/etc/ssl/private/${_keyname}.pem" target => "/etc/ssl/private/${_keyname}.pem"
} -> } ->
apparmor::profile { 'usr.sbin.lighttpd': source => '/etc/apparmor-cosmos/usr.sbin.lighttpd' } -> if ($::operatingsystemrelease < '20.04') {
apparmor::profile { 'usr.sbin.lighttpd': source => '/etc/apparmor-cosmos/usr.sbin.lighttpd' }
}
else {
apparmor::profile { 'usr.sbin.lighttpd': source => '/etc/apparmor-cosmos/usr.sbin.lighttpd.upgraded' }
}
file {'/etc/lighttpd/conf-enabled/99-mime-xattr.conf': file {'/etc/lighttpd/conf-enabled/99-mime-xattr.conf':
ensure => file, ensure => file,
mode => '0640', mode => '0640',