From 82224d67c988af7e0934a1e354dd3c083e55a832 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 12 Feb 2017 09:45:54 +0000 Subject: [PATCH] Avoid generating a certificate when we don't need one --- cookbooks/wordpress/.foodcritic | 1 + cookbooks/wordpress/providers/site.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/cookbooks/wordpress/.foodcritic b/cookbooks/wordpress/.foodcritic index a085263c8..26719e832 100644 --- a/cookbooks/wordpress/.foodcritic +++ b/cookbooks/wordpress/.foodcritic @@ -1,3 +1,4 @@ ~FC001 +~FC021 ~FC064 ~FC065 diff --git a/cookbooks/wordpress/providers/site.rb b/cookbooks/wordpress/providers/site.rb index 0920fe9c1..4b389a4be 100644 --- a/cookbooks/wordpress/providers/site.rb +++ b/cookbooks/wordpress/providers/site.rb @@ -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 -- 2.39.5