Skip to content

Commit 315171a

Browse files
author
Sumit Jamgade
committed
desginate: simplify sample pool
in crowbar's world the dns-master is the master of all and slaves forward all queries to dns-master. Under such a configuration there is no need to query other nameservers as they still forward the query to dns-master. So designate can just verify on one nameserver(dns-master) and dns-master will take care of passing that info to all slaves. Same goes for also_notifies: dns-master will notify all slaves in case of either zone or recordset is updated/deleted. this also further simplifies the designate pool config reducing the time required to create zone and recordsets. This change is not really required but only eases out the config from an admin perspective. Also having multiple nameservers confuses designate in some cases as according to these nameserver designate is not authoritative of some zones and recordsets.
1 parent c55cdbc commit 315171a

File tree

1 file changed

+3
-5
lines changed
  • chef/cookbooks/designate/recipes

1 file changed

+3
-5
lines changed

chef/cookbooks/designate/recipes/mdns.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
dns = node_search_with_cache("roles:dns-server").first
2222
dnsmaster = dns[:dns][:master_ip]
23-
dnsslaves = dns[:dns][:slave_ips].to_a
24-
dnsservers = [dnsmaster] + dnsslaves
2523

2624
network_settings = DesignateHelper.network_settings(node)
2725

@@ -36,12 +34,12 @@
3634
# non-hardcoded is high enough
3735
pools = [{
3836
"name" => "default-bind",
39-
"description" => "Default BIND9 Pool",
37+
"description" => "Sample Pool for designate (relies only 1 dns-master)",
4038
"id" => "794ccc2c-d751-44fe-b57f-8894c9f5c842",
4139
"attributes" => {},
4240
"ns_records" => [{ "hostname" => "#{dns[:fqdn]}.", "priority" => 1 }],
43-
"nameservers" => dnsservers.map { |ip| { "host" => ip, "port" => 53 } },
44-
"also_notifies" => dnsslaves.map { |ip| { "host" => ip, "port" => 53 } },
41+
"nameservers" => [{ "host" => dnsmaster, "port" => 53 }],
42+
"also_notifies" => [],
4543
"targets" => [{
4644
"type" => "bind9",
4745
"description" => "BIND9 Server 1",

0 commit comments

Comments
 (0)