]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/named/templates/named.conf.options.erb
move over dns_primary/seconday
[dsa-puppet.git] / modules / named / templates / named.conf.options.erb
index 9ec33e8b1c24385b892118d1a4b0455aa568a64c..72ef825845894f64e0e0d80380891829000d3f7e 100644 (file)
@@ -42,7 +42,7 @@ options {
        dnssec-validation yes;
 <% end -%>
 
-<% if classes.include?('named::authoritative') and not scope.lookupvar('site::nodeinfo')['dns_primary'] -%>
+<% if scope.function_has_role(['dns_secondary']) -%>
        rate-limit {
                responses-per-second 25;
                window 5;