From: Peter Palfrader Date: Wed, 1 Jan 2014 21:08:45 +0000 (+0000) Subject: Checking for classes in templates is not reliable X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=5c8e448fd1972596f6f7d9066100f590c60eba45;p=mirror%2Fdsa-puppet.git Checking for classes in templates is not reliable --- 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;