diff --git a/chef/cookbooks/apache2/recipes/mod_ssl.rb b/chef/cookbooks/apache2/recipes/mod_ssl.rb index ac95f3e0dd..d3860462ce 100644 --- a/chef/cookbooks/apache2/recipes/mod_ssl.rb +++ b/chef/cookbooks/apache2/recipes/mod_ssl.rb @@ -40,7 +40,8 @@ # override the resource defined in default.rb; we don't want to create the # resource again, otherwise we will write the file twice resource = resources(template: "#{node[:apache][:dir]}/ports.conf") - resource.variables({apache_listen_ports: [node[:apache][:listen_ports], "443"].flatten}) + node[:apache][:listen_ports] << "443" + resource.variables({apache_listen_ports: node[:apache][:listen_ports]}) end apache_module "ssl" do