fix exec syntax error
This commit is contained in:
parent
46878e1090
commit
3cb9e38d5c
1 changed files with 4 additions and 4 deletions
|
@ -159,12 +159,12 @@ class md_publisher(Array $allow_clients = ['any'], $keyname = undef, String $dir
|
||||||
package {'lighttpd': ensure => latest } ->
|
package {'lighttpd': ensure => latest } ->
|
||||||
service {'lighttpd': ensure => running } ->
|
service {'lighttpd': ensure => running } ->
|
||||||
exec {'enable-ssl':
|
exec {'enable-ssl':
|
||||||
cmd => "/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':
|
exec {'server.pem':
|
||||||
cmd => "cat /etc/ssl/private/${_keyname}.key /etc/ssl/certs/${_keyname}.crt > /etc/lighttpd/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"
|
onlyif => "test ! -f /etc/lighttpd/server.pem -a -f /etc/ssl/private/${_keyname}.key -a -f /etc/ssl/certs/${_keyname}.crt"
|
||||||
} ->
|
} ->
|
||||||
apparmor::profile { 'usr.sbin.lighttpd': source => '/etc/apparmor-cosmos/usr.sbin.lighttpd' } ->
|
apparmor::profile { 'usr.sbin.lighttpd': source => '/etc/apparmor-cosmos/usr.sbin.lighttpd' } ->
|
||||||
sunet::misc::ufw_allow {'allow-lighttpd':
|
sunet::misc::ufw_allow {'allow-lighttpd':
|
||||||
|
|
Loading…
Add table
Reference in a new issue