/[adm]/puppet/deployment/dns/templates/mageia.org.zone
ViewVC logotype

Contents of /puppet/deployment/dns/templates/mageia.org.zone

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3072 - (show annotations) (download)
Thu May 2 19:33:00 2013 UTC (10 years, 5 months ago) by boklm
File size: 4178 byte(s)
dns: set TTL to 30 minutes
1 <%-
2 # nodes list defined in puppet/manifests/nodes_ip.pp
3 nodes = scope.lookupvar('::nodes_ipaddr')
4 -%>
5 ; puppet-distributed file
6 ; local modifications will be lost
7 ; $Id$
8 $TTL 30m
9 @ IN SOA ns0.mageia.org. root.mageia.org. (
10 2013041100 ; Serial
11 21600 ; Refresh
12 3600 ; Retry
13 2419200 ; Expire
14 86400 ; Minmun TTL
15 )
16
17 ; nameservers
18 @ IN NS ns0.mageia.org.
19 @ IN NS ns1.mageia.org.
20
21 @ IN MX 10 alamut.mageia.org.
22 @ IN MX 20 krampouezh.mageia.org.
23
24 ; TODO use a loop here
25 ml IN MX 10 alamut.mageia.org.
26 ml IN MX 20 krampouezh.mageia.org.
27
28 group IN MX 10 alamut.mageia.org.
29 group IN MX 20 krampouezh.mageia.org.
30
31
32 ; machines
33 <%-
34 nodes_txt = ''
35 nodes.keys.sort.each{|nodename|
36 if nodes[nodename].has_key?('ipv4')
37 nodes_txt += nodename + ' IN A ' + nodes[nodename]['ipv4'] + "\n"
38 end
39 if nodes[nodename].has_key?('ipv6')
40 nodes_txt += nodename + ' IN AAAA ' + nodes[nodename]['ipv6'] + "\n"
41 end
42 }
43 -%>
44 <%= nodes_txt %>
45
46 ;SSHFP
47 alamut IN SSHFP 1 1 ef093dc95002c4af6623f02238749fd59fe81eec
48 alamut IN SSHFP 2 1 179cfa0660550698c4d98f488772b7c7896d96b5
49 valstar IN SSHFP 1 1 f08e336f678d7c4a8772f17770976af7dd4d7a4f
50 valstar IN SSHFP 2 1 c0c45ed25aa8a9f1723a1ae077dcee61677a56a6
51
52 ; alamut
53 ns0 IN A <%= nodes['alamut']['ipv4'] %>
54 ; krampouezh
55 ns1 IN A <%= nodes['krampouezh']['ipv4'] %>
56
57 ; mageia.org set to IP of champagne :
58 mageia.org. IN A <%= nodes['champagne']['ipv4'] %>
59 www-zarb IN A 212.85.158.22
60
61 ; since we have a subdomain, we cannot use a CNAME
62 ml IN A <%= nodes['alamut']['ipv4'] %>
63 ml IN AAAA <%= nodes['alamut']['ipv6'] %>
64 ; mga torrent server and tracker
65 torrent IN A <%= nodes['alamut']['ipv4'] %>
66 torrent IN AAAA <%= nodes['alamut']['ipv6'] %>
67
68 ; aliases
69 www IN CNAME champagne
70 www-test IN CNAME champagne
71 static IN CNAME champagne
72 start IN CNAME champagne
73 blog IN CNAME champagne
74 planet IN CNAME champagne
75 hugs IN CNAME champagne
76 releases IN CNAME champagne
77 dashboard IN CNAME champagne
78 nav IN CNAME champagne
79 doc IN CNAME champagne
80 archives IN CNAME champagne
81 meetbot IN CNAME krampouezh
82 ldap-slave-1 IN CNAME krampouezh
83 rsync IN CNAME valstar
84 svn IN CNAME valstar
85 git IN CNAME valstar
86 tmp IN CNAME alamut
87 puppetmaster IN CNAME valstar
88 puppet IN CNAME valstar
89 pkgsubmit IN CNAME valstar
90 binrepo IN CNAME valstar
91 repository IN CNAME valstar
92 maintdb IN CNAME valstar
93 ldap IN CNAME valstar
94 ldap-master IN CNAME valstar
95 pgsql IN CNAME alamut
96 bcd IN CNAME rabbit
97
98 <%# Hostnames we can redirect while LO servers are offline start here -%>
99 identity IN CNAME alamut
100 identity-trunk IN CNAME alamut
101 mirrors IN CNAME alamut
102 epoll IN CNAME alamut
103 bugs IN CNAME alamut
104 svnweb IN CNAME alamut
105 xymon IN CNAME alamut
106 check IN CNAME alamut
107 wiki IN CNAME alamut
108 gitweb IN CNAME alamut
109 pkgcpan IN CNAME alamut
110 perl IN CNAME alamut
111 tmp IN CNAME alamut
112 people IN CNAME alamut
113 forums IN CNAME alamut
114 forum IN CNAME alamut
115
116 <%# (commented)
117 ; temporary redirection to champagne while alamut is offline
118 identity IN CNAME champagne
119 identity-trunk IN CNAME champagne
120 mirrors IN CNAME champagne
121 epoll IN CNAME champagne
122 bugs IN CNAME champagne
123 svnweb IN CNAME champagne
124 xymon IN CNAME champagne
125 check IN CNAME champagne
126 wiki IN CNAME champagne
127 gitweb IN CNAME champagne
128 pkgcpan IN CNAME champagne
129 perl IN CNAME champagne
130 tmp IN CNAME champagne
131 people IN CNAME champagne
132 forums IN CNAME champagne
133 forum IN CNAME champagne
134 -%>
135
136 ; build nodes aliases
137 jonund0 IN CNAME jonund
138 jonund1 IN CNAME jonund
139 ecosse0 IN CNAME ecosse
140 ecosse1 IN CNAME ecosse
141 rabbit0 IN CNAME rabbit
142 rabbit1 IN CNAME rabbit
143 rabbit2 IN CNAME rabbit
144 sucuk0 IN CNAME sucuk
145 sucuk1 IN CNAME sucuk
146 sucuk2 IN CNAME sucuk
147
148 <%# vim: set filetype=bindzone : -%>

  ViewVC Help
Powered by ViewVC 1.1.28