File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -355,15 +355,15 @@ def make_zone(zone)
355355 notifies :reload , "service[bind9]"
356356end
357357
358- if node [ :dns ] [ :enable_designate ] && node [ :dns ] [ :master ]
358+ if node [ :dns ] [ :enable_designate ]
359359 template "/etc/named.d/designate-rndc-access.conf" do
360360 source "designate-rndc-access.conf.erb"
361361 mode 0o640
362362 owner "root"
363363 group bindgroup
364364 variables (
365365 rndc_key : node [ :dns ] [ :designate_rndc_key ] ,
366- master_ip : admin_network . address ,
366+ admin_ip : admin_network . address ,
367367 admin_subnet : IP ::IP4 . netmask_to_subnet ( admin_network . netmask ) ,
368368 admin_network : admin_network . subnet
369369 )
@@ -415,7 +415,7 @@ def make_zone(zone)
415415 allow_transfer : allow_transfer ,
416416 ipaddresses : ipaddresses ,
417417 ip6addresses : ip6addresses ,
418- enable_designate : node [ :dns ] [ :enable_designate ] && node [ :dns ] [ :master ]
418+ enable_designate : node [ :dns ] [ :enable_designate ]
419419 )
420420 notifies :restart , "service[bind9]" , :immediately
421421end
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ controls {
77 # listen on the admin interface and
88 # allow access via the designate-key
99 # from ips of admin_network
10- inet <%= @master_ip -%> allow { <%= @admin_network -%> /<%= @admin_subnet -%> ; } keys { designate-key; };
10+ inet <%= @admin_ip -%> allow { <%= @admin_network -%> /<%= @admin_subnet -%> ; } keys { designate-key; };
1111};
You can’t perform that action at this time.
0 commit comments