Files
puppet-designate/templates/pdns4-pools.yaml.erb
Takashi Kajinami beb10536cb Support customizing pool attributes
Change-Id: Ic3093b91eddeeadbf9fb751df905e259a6f5c6c5
2024-03-18 09:12:16 +09:00

40 lines
917 B
Plaintext

---
- name: default
description: Default pool
<% if @attributes.empty? -%>
attributes: {}
<% else -%>
attributes:
<% @attributes.sort.each do |key, val| -%>
<%= key %>: <%= val %>
<% end -%>
<% end -%>
targets:
<% @pdns4_hosts.each do |pdns4_host| -%>
- type: pdns4
description: PowerDNS4 DNS Server <%= pdns4_host %>
masters:
<% @mdns_hosts.each do |mdns_host| -%>
- host: <%= mdns_host %>
port: <%= @mdns_port.to_s %>
<% end -%>
options:
host: <%= pdns4_host %>
port: <%= @dns_port.to_s %>
api_endpoint: <%= @api_endpoint %>
api_token: <%= @api_token %>
<%- if @tsigkey_name -%>
tsigkey_name: <%= @tsigkey_name %>
<%- end -%>
<% end -%>
<% if !(@also_notifies.empty?) -%>
also_notifies:
<% @also_notifies.each do |also_notify| -%>
- host: <%= also_notify %>
port: <%= @dns_port.to_s %>
<% end -%>
<% end -%>