Allow a certificate file to replace a symbolic link
authorTom Hughes <tom@compton.nu>
Sat, 11 Feb 2017 19:19:37 +0000 (19:19 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 11 Feb 2017 19:19:37 +0000 (19:19 +0000)
cookbooks/ssl/resources/certificate.rb

index 01eedd8..42957c7 100644 (file)
@@ -40,6 +40,7 @@ action :create do
       mode 0o444
       content certificate
       backup false
+      manage_symlink_source false
     end
 
     file "/etc/ssl/private/#{name}.key" do
@@ -48,6 +49,7 @@ action :create do
       mode 0o440
       content key
       backup false
+      manage_symlink_source false
     end
   elsif fallback_certificate
     link "/etc/ssl/certs/#{name}.pem" do