]> git.openstreetmap.org Git - chef.git/commitdiff
Revert accidental change
authorTom Hughes <tom@compton.nu>
Sat, 15 Feb 2020 19:19:51 +0000 (19:19 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 15 Feb 2020 19:20:25 +0000 (19:20 +0000)
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"