]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/geodns/recipes/default.rb
Stop remove+add nano looping
[chef.git] / cookbooks / geodns / recipes / default.rb
index 73531de012dda60105ac36f1387f5a4572c9ace8..c006ff9dcff4827a40a3322152ce19adf9589c24 100644 (file)
@@ -21,6 +21,8 @@ include_recipe "geoipupdate"
 
 servers = search(:node, "roles:geodns").collect(&:name).sort
 
 
 servers = search(:node, "roles:geodns").collect(&:name).sort
 
+servers << "dummy.example.com" if servers.empty?
+
 package %w[
   gdnsd
 ]
 package %w[
   gdnsd
 ]