link to server.pem
This commit is contained in:
parent
42148f16b3
commit
e324e787c4
1 changed files with 3 additions and 3 deletions
|
@ -161,9 +161,9 @@ class md_publisher(Array $allow_clients = ['any'], $keyname = undef, String $dir
|
||||||
command => "/usr/sbin/lighttpd-enable-mod ssl",
|
command => "/usr/sbin/lighttpd-enable-mod ssl",
|
||||||
onlyif => "test ! -h /etc/lighttpd/conf-enabled/*ssl*"
|
onlyif => "test ! -h /etc/lighttpd/conf-enabled/*ssl*"
|
||||||
} ->
|
} ->
|
||||||
exec {'server.pem':
|
file {'/etc/lighttpd/server.pem':
|
||||||
command => "cat /etc/ssl/private/${_keyname}.key /etc/ssl/certs/${_keyname}.crt > /etc/lighttpd/server.pem",
|
ensure => 'link',
|
||||||
onlyif => "test ! -f /etc/lighttpd/server.pem -a -f /etc/ssl/private/${_keyname}.key -a -f /etc/ssl/certs/${_keyname}.crt"
|
target => '/etc/ssl/private/${_keyname}.pem'
|
||||||
} ->
|
} ->
|
||||||
apparmor::profile { 'usr.sbin.lighttpd': source => '/etc/apparmor-cosmos/usr.sbin.lighttpd' } ->
|
apparmor::profile { 'usr.sbin.lighttpd': source => '/etc/apparmor-cosmos/usr.sbin.lighttpd' } ->
|
||||||
service {'lighttpd': ensure => running } ->
|
service {'lighttpd': ensure => running } ->
|
||||||
|
|
Loading…
Add table
Reference in a new issue