From e05673fceab5b68e33fb5ed4661ede6217fb919e Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 17 Apr 2013 09:11:40 +0200 Subject: [PATCH 1/1] Try to make manifest work with new hieradata --- modules/unbound/manifests/init.pp | 2 +- modules/unbound/templates/unbound.conf.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/unbound/manifests/init.pp b/modules/unbound/manifests/init.pp index caf95027d..08f3e4aca 100644 --- a/modules/unbound/manifests/init.pp +++ b/modules/unbound/manifests/init.pp @@ -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', diff --git a/modules/unbound/templates/unbound.conf.erb b/modules/unbound/templates/unbound.conf.erb index d919f384f..4da955ffd 100644 --- a/modules/unbound/templates/unbound.conf.erb +++ b/modules/unbound/templates/unbound.conf.erb @@ -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 -- 2.20.1