]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/bind/recipes/default.rb
tilecache: remove redundant squid config
[chef.git] / cookbooks / bind / recipes / default.rb
index aaba997815cf10e205e28d3e28e4590f1ccfe45f..087ef5802f4db2ff5eaac454f40f41675adcde8d 100644 (file)
 
 include_recipe "networking"
 
-ipv4_clients = []
-ipv6_clients = []
+clients = search(:node, "roles:#{node[:bind][:clients]}")
+
+ipv4_clients = clients.collect do |client|
+  client.ipaddresses(:family => :inet)
+end.flatten
+
+ipv6_clients = clients.collect do |client|
+  client.ipaddresses(:family => :inet6)
+end.flatten
 
 package "bind9"