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 0920fe9..4b389a4 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