From 20e6d4524062198d6521c5e692e73c57984a322a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 27 Oct 2016 21:38:14 +0100 Subject: [PATCH] Certificates are now file resources --- cookbooks/apache/recipes/ssl.rb | 2 +- cookbooks/tilecache/recipes/default.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/apache/recipes/ssl.rb b/cookbooks/apache/recipes/ssl.rb index f87971157..3e3941099 100644 --- a/cookbooks/apache/recipes/ssl.rb +++ b/cookbooks/apache/recipes/ssl.rb @@ -36,5 +36,5 @@ 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]") diff --git a/cookbooks/tilecache/recipes/default.rb b/cookbooks/tilecache/recipes/default.rb index 625783b66..b97ce12c8 100644 --- a/cookbooks/tilecache/recipes/default.rb +++ b/cookbooks/tilecache/recipes/default.rb @@ -97,7 +97,7 @@ service "nginx-certificate-restart" do service_name "nginx" action :nothing subscribes :restart, "cookbook_file[/etc/ssl/certs/rapidssl.pem]" - subscribes :restart, "cookbook_file[/etc/ssl/certs/#{certificate}.pem]" + subscribes :restart, "file[/etc/ssl/certs/#{certificate}.pem]" subscribes :restart, "file[/etc/ssl/private/#{certificate}.key]" end -- 2.43.2