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",
|
||||
onlyif => "test ! -h /etc/lighttpd/conf-enabled/*ssl*"
|
||||
} ->
|
||||
exec {'server.pem':
|
||||
command => "cat /etc/ssl/private/${_keyname}.key /etc/ssl/certs/${_keyname}.crt > /etc/lighttpd/server.pem",
|
||||
onlyif => "test ! -f /etc/lighttpd/server.pem -a -f /etc/ssl/private/${_keyname}.key -a -f /etc/ssl/certs/${_keyname}.crt"
|
||||
file {'/etc/lighttpd/server.pem':
|
||||
ensure => 'link',
|
||||
target => '/etc/ssl/private/${_keyname}.pem'
|
||||
} ->
|
||||
apparmor::profile { 'usr.sbin.lighttpd': source => '/etc/apparmor-cosmos/usr.sbin.lighttpd' } ->
|
||||
service {'lighttpd': ensure => running } ->
|
||||
|
|
Loading…
Add table
Reference in a new issue