diff --git a/manifests/params.pp b/manifests/params.pp index 1cce10b7c..4d17497fc 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -16,8 +16,13 @@ $servicename = 'bind9' $binduser = 'bind' $bindgroup = 'bind' - $file_hint = '/etc/bind/db.root' $file_rfc1912 = '/etc/bind/named.conf.default-zones' + + if $::operatingsystem == 'Ubuntu' { + $file_hint = false + } else { + $file_hint = '/etc/bind/db.root' + } } 'Freebsd': { $packagenameprefix = 'bind910' diff --git a/templates/named.conf.erb b/templates/named.conf.erb index 39cd72b8c..1be6bf361 100644 --- a/templates/named.conf.erb +++ b/templates/named.conf.erb @@ -157,7 +157,7 @@ view "<%= key %>" { <% end -%> <% else -%><%# end views, start no views -%> -<% if @recursion == 'yes' -%> +<% if @recursion == 'yes' && @file_hint -%> zone "." IN { type hint; file "<%= @file_hint %>";