From ce148add48f62b9aa8144e2ec40f19909d67ac8d Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 10 Apr 2017 01:45:30 +0200 Subject: bind: update named_base to work with Mga >= 3 This will allow to enabled back puppet on krampouezh. --- modules/bind/templates/named_base.conf | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'modules/bind/templates/named_base.conf') diff --git a/modules/bind/templates/named_base.conf b/modules/bind/templates/named_base.conf index c066f16a..941cf196 100644 --- a/modules/bind/templates/named_base.conf +++ b/modules/bind/templates/named_base.conf @@ -32,7 +32,9 @@ options { version ""; directory "/var/named"; dump-file "/var/tmp/named_dump.db"; +<% if scope.function_versioncmp([lsbdistrelease, '3']) < 0 -%> pid-file "/var/run/named.pid"; +<% end -%> statistics-file "/var/tmp/named.stats"; zone-statistics yes; // datasize 256M; @@ -101,37 +103,67 @@ zone "." IN { zone "localdomain" IN { type master; +<% if scope.function_versioncmp([lsbdistrelease, '3']) >= 0 -%> + file "named.localhost"; +<% else -%> file "master/localdomain.zone"; +<% end -%> allow-update { none; }; }; zone "localhost" IN { type master; +<% if scope.function_versioncmp([lsbdistrelease, '3']) >= 0 -%> + file "named.localhost"; +<% else -%> file "master/localhost.zone"; +<% end -%> allow-update { none; }; }; +<% if scope.function_versioncmp([lsbdistrelease, '3']) >= 0 -%> +zone "1.0.0.127.in-addr.arpa" IN { +<% else -%> zone "0.0.127.in-addr.arpa" IN { +<% end -%> type master; +<% if scope.function_versioncmp([lsbdistrelease, '3']) >= 0 -%> + file "named.loopback"; +<% else -%> file "reverse/named.local"; +<% end -%> allow-update { none; }; }; +<% if scope.function_versioncmp([lsbdistrelease, '3']) >= 0 -%> +zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN { +<% else -%> zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN { +<% end -%> type master; +<% if scope.function_versioncmp([lsbdistrelease, '3']) >= 0 -%> + file "named.loopback"; +<% else -%> file "reverse/named.ip6.local"; +<% end -%> allow-update { none; }; }; +<% if scope.function_versioncmp([lsbdistrelease, '3']) < 0 -%> zone "255.in-addr.arpa" IN { type master; file "reverse/named.broadcast"; allow-update { none; }; }; +<% end -%> zone "0.in-addr.arpa" IN { type master; +<% if scope.function_versioncmp([lsbdistrelease, '3']) >= 0 -%> + file "named.empty"; +<% else -%> file "reverse/named.zero"; +<% end -%> allow-update { none; }; }; -- cgit v1.2.1