]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/wordpress/providers/site.rb
Avoid generating a certificate when we don't need one
[chef.git] / cookbooks / wordpress / providers / site.rb
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