X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/2b6d9255f4f92ddb5365c011c2ccb44773f15165..ee9c58254ff188cc9a8d13e1d32e421be0b265f7:/cookbooks/apache/recipes/ssl.rb diff --git a/cookbooks/apache/recipes/ssl.rb b/cookbooks/apache/recipes/ssl.rb index f87971157..b9b2ca305 100644 --- a/cookbooks/apache/recipes/ssl.rb +++ b/cookbooks/apache/recipes/ssl.rb @@ -18,7 +18,6 @@ # certificate = node[:apache][:ssl][:certificate] -certificate_chain = node[:apache][:ssl][:certificate_chain] node.default[:ssl][:certificates] = node[:ssl][:certificates] | [certificate] @@ -29,12 +28,11 @@ apache_module "ssl" apache_conf "ssl" do template "ssl.erb" - variables :certificate => certificate, :certificate_chain => certificate_chain + variables :certificate => certificate notifies :reload, "service[apache2]" end apache = resources("service[apache2]") -apache.subscribes(:restart, "cookbook_file[/etc/ssl/certs/#{certificate_chain}.pem]") -apache.subscribes(:restart, "cookbook_file[/etc/ssl/certs/#{certificate}.pem]") +apache.subscribes(:restart, "file[/etc/ssl/certs/#{certificate}.pem]") apache.subscribes(:restart, "file[/etc/ssl/private/#{certificate}.key]")