]> git.openstreetmap.org Git - chef.git/commitdiff
Avoid generating a certificate when we don't need one
authorTom Hughes <tom@compton.nu>
Sun, 12 Feb 2017 09:45:54 +0000 (09:45 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 12 Feb 2017 09:45:54 +0000 (09:45 +0000)
cookbooks/wordpress/.foodcritic
cookbooks/wordpress/providers/site.rb

index a085263c88d33bf5f31d0db1a6beb8cd2a9ef9f6..26719e832809179bd8996ff850845a98508358e9 100644 (file)
@@ -1,3 +1,4 @@
 ~FC001
+~FC021
 ~FC064
 ~FC065
index 0920fe9c12c532237db359d4cad22ba4d0e9ecc6..4b389a4be107f38ff72b342d82c497ac8f415133 100644 (file)
@@ -126,6 +126,7 @@ action :create do
 
   ssl_certificate new_resource.name do
     domains [new_resource.name] + Array(new_resource.aliases)
+    only_if { new_resource.ssl_enabled }
   end
 
   apache_site new_resource.name do