]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
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 caf95027dfdd493f7c1d7292340fea8a80d55e80..08f3e4acae76e24eb0acf3aac99c96ad4895cc3a 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 d919f384fc916d6a964cd0b6733f2bb927a98585..4da955ffd25a4e68659167f7e1e570be6a119410 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