/[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 3289 - (show annotations) (download)
Mon Jul 15 17:25:01 2013 UTC (11 years, 3 months ago) by boklm
File size: 3612 byte(s)
dns: add projects.mageia.org hostname
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 2013071500 ; 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 alamut
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 advisories IN CNAME valstar
96 projects IN CNAME valstar
97 pgsql IN CNAME alamut
98 bcd IN CNAME rabbit
99 mirrors IN CNAME alamut
100
101 identity IN CNAME alamut
102 identity-trunk IN CNAME alamut
103 epoll IN CNAME alamut
104 bugs IN CNAME alamut
105 svnweb IN CNAME alamut
106 xymon IN CNAME alamut
107 check IN CNAME alamut
108 wiki IN CNAME alamut
109 gitweb IN CNAME alamut
110 pkgcpan IN CNAME alamut
111 perl IN CNAME alamut
112 tmp IN CNAME alamut
113 people IN CNAME alamut
114 forums IN CNAME alamut
115 forum IN CNAME alamut
116 treasurer IN CNAME alamut
117
118 ; build nodes aliases
119 jonund0 IN CNAME jonund
120 jonund1 IN CNAME jonund
121 ecosse0 IN CNAME ecosse
122 ecosse1 IN CNAME ecosse
123 rabbit0 IN CNAME rabbit
124 rabbit1 IN CNAME rabbit
125 rabbit2 IN CNAME rabbit
126 sucuk0 IN CNAME sucuk
127 sucuk1 IN CNAME sucuk
128 sucuk2 IN CNAME sucuk
129
130 <%# vim: set filetype=bindzone : -%>

  ViewVC Help
Powered by ViewVC 1.1.30