enable extended attributes for mime-types

This commit is contained in:
Leif Johansson 2019-01-08 10:31:55 +01:00
parent 7888c10c0c
commit 1a0bdc444c

View file

@ -224,6 +224,13 @@ class md_publisher(Array $allow_clients=['any'], $keyname=undef, String $dir="/v
target => "/etc/ssl/private/${_keyname}.pem"
} ->
apparmor::profile { 'usr.sbin.lighttpd': source => '/etc/apparmor-cosmos/usr.sbin.lighttpd' } ->
file {'/etc/lighttpd/conf-enabled/99-mime-xattr.conf':
ensure => file,
mode => '0640',
owner => 'root',
group => 'root',
content => inline_template("mimetype.use-xattr = \"enable\"")
} ->
service {'lighttpd': ensure => running } ->
sunet::misc::ufw_allow {'allow-lighttpd':
from => $allow_clients,