]> git.openstreetmap.org Git - chef.git/commitdiff
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 01eedd80ca2dbb4c7dd3bb40bd73d2a9bf428a83..42957c798f5e7a17ad8980c126ee92b05103ea6e 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