]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
include with a ?
authorPeter Palfrader <peter@palfrader.org>
Tue, 29 Mar 2011 17:07:55 +0000 (19:07 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 29 Mar 2011 17:07:55 +0000 (19:07 +0200)
modules/named/templates/named.conf.options.erb

index 6cff0291c436b33c9f9efcafb3693ae2d320b938..294cbb041f570861b72462ab2858eb68691db00d 100644 (file)
@@ -20,7 +20,7 @@ options {
        directory "/var/cache/bind";
 
        auth-nxdomain no;    # conform to RFC1035
-<% if classes.include?("named::geodns") or %w{senfl}.include(hostname) -%>
+<% if classes.include?("named::geodns") or %w{senfl}.include?(hostname) -%>
        listen-on { ! 127.0.0.1; any; };
        listen-on-v6 { ! ::1; any; };
 <% else -%>
@@ -35,7 +35,7 @@ options {
 
 <%=
   allowed='Nagios; '
-  if (classes.include?('named::authoritative') and not %w{senfl}.include(hostname)) or classes.include?('named::recursor')
+  if (classes.include?('named::authoritative') and not %w{senfl}.include?(hostname)) or classes.include?('named::recursor')
     allowed += 'localnets; '
   end