no RRL on the primary
[mirror/dsa-puppet.git] / modules / named / templates / named.conf.options.erb
index 8bc2f87..1db5200 100644 (file)
@@ -43,7 +43,7 @@ options {
        dnssec-validation yes;
 <% end -%>
 
-<% if %w{senfl ravel orff diamond rietz}.include?(hostname) -%>
+<% if classes.include?('named::authoritative') and not classes.include?('named::primary') -%>
        rate-limit {
                responses-per-second 25;
                window 5;
@@ -70,3 +70,6 @@ logging {
 };
 
  
+<% if classes.include?('named::authoritative') -%>
+include "/etc/bind/named.conf.puppet-shared-keys";
+<% end -%>