Try to make manifest work with new hieradata
authorPeter Palfrader <peter@palfrader.org>
Wed, 17 Apr 2013 07:11:40 +0000 (09:11 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 17 Apr 2013 07:11:40 +0000 (09:11 +0200)
modules/unbound/manifests/init.pp
modules/unbound/templates/unbound.conf.erb

index caf9502..08f3e4a 100644 (file)
@@ -55,7 +55,7 @@ class unbound {
                notify  => Service['unbound']
        }
 
-       if ($is_recursor and $client_ranges) {
+       if ($is_recursor and not $client_ranges.empty?) {
                @ferm::rule { 'dsa-dns':
                        domain      => 'ip',
                        description => 'Allow nameserver access',
index d919f38..4da955f 100644 (file)
@@ -6,7 +6,7 @@
 server:
        verbosity: 1
 
-<% if @is_recursor && @client_ranges -%>
+<% if @is_recursor && not @client_ranges.empty? -%>
        interface: 0.0.0.0
        interface: ::0