]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/resources/site.rb
Configure eddie as a database master
[chef.git] / cookbooks / imagery / resources / site.rb
index 137153a72f1539eafbbdfd1d75345a4610543326..d6e2071ccfb1a07518a1ede888eaba2b78404663 100644 (file)
@@ -89,9 +89,10 @@ action :create do
   end
 
   base_domains = [name] + Array(aliases)
+  tile_domains = base_domains.flat_map { |d| [d, "a.#{d}", "b.#{d}", "c.#{d}"] }
 
   ssl_certificate new_resource.name do
-    domains base_domains.flat_map { |d| [d, "a.#{d}", "b.#{d}", "c.#{d}"] }
+    domains tile_domains
   end
 
   resolvers = node[:networking][:nameservers].map do |resolver|