launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #09206
[Merge] lp:~julian-edwards/maas/dns-templates into lp:maas
Julian Edwards has proposed merging lp:~julian-edwards/maas/dns-templates into lp:maas.
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~julian-edwards/maas/dns-templates/+merge/112022
DNS Tempita templates
--
https://code.launchpad.net/~julian-edwards/maas/dns-templates/+merge/112022
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~julian-edwards/maas/dns-templates into lp:maas.
=== added directory 'src/provisioningserver/dns'
=== added directory 'src/provisioningserver/dns/templates'
=== added file 'src/provisioningserver/dns/templates/named.conf.template'
--- src/provisioningserver/dns/templates/named.conf.template 1970-01-01 00:00:00 +0000
+++ src/provisioningserver/dns/templates/named.conf.template 2012-06-26 08:03:48 +0000
@@ -0,0 +1,32 @@
+
+options {
+ listen-on port 53 { any; };
+ directory "/var/named";
+ dump-file "/var/named/data/cache_dump.db";
+ statistics-file "/var/named/data/named_stats.txt";
+ memstatistics-file "/var/named/data/named_mem_stats.txt";
+ recursion yes;
+};
+
+logging {
+ channel default_debug {
+ file "data/named.run";
+ severity dynamic;
+ };
+};
+
+# Zone declarations
+
+{{for zone_bunch in zones}}
+zone "{{zone_bunch.zone}}." {
+ type master;
+ file "{{zone_bunch.file}}";
+};
+{{endfor}}
+
+{{for reverse_bunch in reverse_zones}}
+zone "{{reverse_bunch.arpa}}." {
+ type master;
+ file "{{reverse_bunch.file}}";
+};
+{{endfor}}
=== added file 'src/provisioningserver/dns/templates/zone.template'
--- src/provisioningserver/dns/templates/zone.template 1970-01-01 00:00:00 +0000
+++ src/provisioningserver/dns/templates/zone.template 2012-06-26 08:03:48 +0000
@@ -0,0 +1,15 @@
+$TTL 300
+@ IN SOA {{domain}}. nobody.example.com. (
+ {{serial}} ; Serial (increment on changes)
+ 600 ; Refresh
+ 1800 ; Retry
+ 604800 ; Expire
+ 300 ; TTL
+ )
+
+ IN NS {{maas_server}}.
+
+
+{{for host_bunch in hosts}}
+{{host_bunch.host}} IN A {{host_bunch.ip}}
+{{endfor}}