Files
puppet-designate/templates/bind9-pools.yaml.erb
Takashi Kajinami b80aa36946 bind9: Make rndc options optional
rndc_config_file and rndc_key_file are not required in every deployment
because designate override the minimum options such as host or port
when running the rndc command. Drop the hard-coded default so that
users don't have to create these files although one/both of these are
unused.

Change-Id: Ibb1caf04b1a911b1a83c625c61510631d9c672da
2025-02-09 09:07:59 +09:00

60 lines
1.4 KiB
Plaintext

---
- name: default
description: Default pool
<% if @attributes.empty? -%>
attributes: {}
<% else -%>
attributes:
<% @attributes.sort.each do |key, val| -%>
<%= key %>: <%= val %>
<% end -%>
<% end -%>
ns_records:
<% @ns_records.sort.each do |priority, hostname| -%>
- hostname: <%= hostname %>
priority: <%= priority.to_s %>
<% end -%>
nameservers:
<% @nameservers.each do |nameserver| -%>
- host: <%= nameserver %>
port: <%= @dns_port.to_s %>
<% end -%>
targets:
<% @bind9_hosts.each do |bind9_host| -%>
- type: bind9
description: BIND9 Server <%= bind9_host %>
masters:
<% @mdns_hosts.each do |mdns_host| -%>
- host: <%= mdns_host %>
port: <%= @mdns_port.to_s %>
<% end -%>
options:
host: <%= bind9_host %>
port: <%= @dns_port.to_s %>
rndc_host: <%= bind9_host %>
<% if !@rndc_port.nil? -%>
rndc_port: <%= @rndc_port %>
<% end -%>
<% if !@rndc_config_file.nil? -%>
rndc_config_file: <%= @rndc_config_file %>
<% end -%>
<% if !@rndc_key_file.nil? -%>
rndc_key_file: <%= @rndc_key_file %>
<% end -%>
<% if @clean_zonefile -%>
clean_zonefile: true
<% end -%>
<% end -%>
<% if !(@also_notifies.empty?) -%>
also_notifies:
<% @also_notifies.each do |also_notify| -%>
- host: <%= also_notify %>
port: <%= @dns_port.to_s %>
<% end -%>
<% end -%>