Files
puppet-designate/templates/bind9-pools.yaml.erb
Takashi Kajinami 22019e46e2 Fix setup of bind9 backend
Designate no longer uses the parameters in the [backend:bind9] section,
since ppols.yaml was introduced. This change ensures the parameters in
this wrong section are purged.

Also, this change introduces support for setting up backend using
pools.yaml according to the current installation guide.

Closes-Bug: #1961516
Change-Id: I28a91ab99325970db1e96aa904f35e8f9a5e109c
2022-02-21 18:10:56 +09:00

37 lines
869 B
Plaintext

---
- name: default
description: Default pool
attributes: {}
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 %>
rndc_port: <%= @rndc_port %>
rndc_config_file: <%= @rndc_config_file %>
rndc_key_file: <%= @rndc_key_file %>
<% end -%>