From 5c8e448fd1972596f6f7d9066100f590c60eba45 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 1 Jan 2014 21:08:45 +0000 Subject: [PATCH] Checking for classes in templates is not reliable --- modules/named/templates/named.conf.options.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/named/templates/named.conf.options.erb b/modules/named/templates/named.conf.options.erb index 1db5200dc..325b7f1fc 100644 --- a/modules/named/templates/named.conf.options.erb +++ b/modules/named/templates/named.conf.options.erb @@ -43,7 +43,7 @@ options { dnssec-validation yes; <% end -%> -<% if classes.include?('named::authoritative') and not classes.include?('named::primary') -%> +<% if classes.include?('named::authoritative') and not scope.lookupvar('site::nodeinfo')['dns_primary'] -%> rate-limit { responses-per-second 25; window 5; -- 2.20.1