+ base_domains = [name] + Array(aliases)
+
+ ssl_certificate new_resource.name do
+ domains base_domains.flat_map { |d| [d, "a.#{d}", "b.#{d}", "c.#{d}"] }
+ end
+
+ resolvers = node[:networking][:nameservers].map do |resolver|
+ IPAddr.new(resolver).ipv6? ? "[#{resolver}]" : resolver
+ end
+
+ nginx_site new_resource.name do