1 | {% load ramonb_extras %} |
---|
2 | {% noblanklines %} |
---|
3 | |
---|
4 | {% epilogue %} |
---|
5 | /bin/echo /usr/bin/test -f /etc/bind/prim/db.osd.sara.nl.manual || /bin/touch /etc/bind/prim/db.osd.sara.nl.manual |
---|
6 | /usr/bin/test -f /etc/bind/prim/db.osd.sara.nl.manual || /bin/touch /etc/bind/prim/db.osd.sara.nl.manual |
---|
7 | /bin/echo /usr/bin/test -f /etc/bind/prim/db.int.osd.sara.nl.manual || /bin/touch /etc/bind/prim/db.int.osd.sara.nl.manual |
---|
8 | /usr/bin/test -f /etc/bind/prim/db.int.osd.sara.nl.manual || /bin/touch /etc/bind/prim/db.int.osd.sara.nl.manual |
---|
9 | /bin/echo /usr/bin/test -f /etc/bind/prim/db.con.osd.sara.nl.manual || /bin/touch /etc/bind/prim/db.con.osd.sara.nl.manual |
---|
10 | /usr/bin/test -f /etc/bind/prim/db.con.osd.sara.nl.manual || /bin/touch /etc/bind/prim/db.con.osd.sara.nl.manual |
---|
11 | /bin/echo /etc/init.d/bind9 reload |
---|
12 | /etc/init.d/bind9 reload |
---|
13 | {% endepilogue %} |
---|
14 | |
---|
15 | {% endnoblanklines %} |
---|
16 | {% store '/etc/bind/prim/db.osd.sara.nl' %} |
---|
17 | {% noblanklines %} |
---|
18 | |
---|
19 | ; |
---|
20 | ; SVN: {{ svn_id }} |
---|
21 | ; {{ svn_url }} |
---|
22 | ; |
---|
23 | ; This file is automagically generated by CMTSARA |
---|
24 | ; |
---|
25 | ; SARA - Computing and Networking Services |
---|
26 | ; Date : Jan 24 2011 |
---|
27 | ; Version : {{ version }} |
---|
28 | ; Generated : {% now "r" %} |
---|
29 | ; |
---|
30 | |
---|
31 | @ IN SOA install2.lisa.sara.nl. root.install2.lisa.sara.nl. ( |
---|
32 | {% now "ymdHi" %} ; Serial |
---|
33 | 7200 ; Refresh |
---|
34 | 600 ; Retry |
---|
35 | 604800 ; Expire |
---|
36 | 86400 ) ; Minimum |
---|
37 | IN NS nsauth1.sara.nl. |
---|
38 | IN NS nsauth2.sara.nl. |
---|
39 | {% endnoblanklines %} |
---|
40 | |
---|
41 | $INCLUDE /etc/bind/prim/db.osd.sara.nl.manual |
---|
42 | |
---|
43 | {% use Network with 'name__contains=osd' as osd_networks %} |
---|
44 | {% for n in osd_networks %} |
---|
45 | {% assign network_query = 'network__name=' n.name %} |
---|
46 | {% use interface with network_query as network_interfaces %} |
---|
47 | |
---|
48 | $ORIGIN {{ n.domain }}. |
---|
49 | |
---|
50 | {% noblanklines %} |
---|
51 | {% for iface in network_interfaces %} |
---|
52 | |
---|
53 | {{ iface.label }} IN A {{ iface.ip }} |
---|
54 | |
---|
55 | {% if iface.cnames != None %} |
---|
56 | {% for cname in iface.cnames %} |
---|
57 | |
---|
58 | {{cname}} IN CNAME {{ iface.label }} |
---|
59 | |
---|
60 | {% endfor %} |
---|
61 | {% endif %} |
---|
62 | {% endfor %} |
---|
63 | {% endnoblanklines %} |
---|
64 | {% endfor %} |
---|
65 | |
---|
66 | {% endstore %} |
---|
67 | |
---|
68 | {% for n in osd_networks %} |
---|
69 | {% getbasenets n.name as network_basenets %} |
---|
70 | {% for bnet in network_basenets %} |
---|
71 | |
---|
72 | {% assign filename = '/etc/bind/prim/db.' bnet %} |
---|
73 | {% epilogue %} |
---|
74 | |
---|
75 | /bin/echo /usr/bin/test -f {{ filename }}.manual || /bin/touch {{ filename }}.manual |
---|
76 | /usr/bin/test -f {{ filename }}.manual || /bin/touch {{ filename }}.manual |
---|
77 | |
---|
78 | {% endepilogue %} |
---|
79 | {% store filename %} |
---|
80 | {% noblanklines %} |
---|
81 | $TTL 3600 |
---|
82 | ; |
---|
83 | ; SVN: {{ svn_id }} |
---|
84 | ; {{ svn_url }} |
---|
85 | ; |
---|
86 | ; This file is automagically generated by CMTSARA |
---|
87 | ; |
---|
88 | ; SARA - Computing and Networking Services |
---|
89 | ; Date : Jan 24 2011 |
---|
90 | ; Version : {{ version }} |
---|
91 | ; Generated : {% now "r" %} |
---|
92 | @ IN SOA install2.lisa.sara.nl. root.install2.lisa.sara.nl. ( |
---|
93 | {% now "ymdHi" %} ; Serial |
---|
94 | 7200 ; Refresh |
---|
95 | 600 ; Retry |
---|
96 | 604800 ; Expire |
---|
97 | 86400 ) ; Minimum |
---|
98 | IN NS install2.lisa.sara.nl. |
---|
99 | {% endnoblanklines %} |
---|
100 | |
---|
101 | $INCLUDE /etc/bind/prim/db.{{ bnet }}.manual |
---|
102 | |
---|
103 | $ORIGIN {{ bnet|arpanize }}. |
---|
104 | |
---|
105 | {% noblanklines %} |
---|
106 | {% assign network_query = 'network__name=' n.name %} |
---|
107 | {% use interface with network_query as network_interfaces %} |
---|
108 | {% for iface in network_interfaces %} |
---|
109 | {% if iface.ip|base_net == bnet %} |
---|
110 | |
---|
111 | {{ iface.ip|ip_last_digit }} IN PTR {{ iface.label }}.{{ n.domain }}. |
---|
112 | |
---|
113 | {% endif %} |
---|
114 | {% endfor %} |
---|
115 | |
---|
116 | {% endnoblanklines %} |
---|
117 | {% endstore %} |
---|
118 | {% endfor %} |
---|
119 | {% endfor %} |
---|