<%- # nodes list defined in puppet/manifests/nodes_ip.pp nodes = scope.lookupvar('::nodes_ipaddr') -%> ; puppet-distributed file ; local modifications will be lost ; $Id$ $TTL 30m @ IN SOA ns0.mageia.org. root.mageia.org. ( 2017041000 ; Serial 7200 ; Refresh 3600 ; Retry 86400 ; Expire 300 ; Minmun TTL ) ; nameservers @ IN NS ns0.mageia.org. @ IN NS ns1.mageia.org. @ IN MX 10 alamut.mageia.org. @ IN MX 20 krampouezh.mageia.org. ; TODO use a loop here ml IN MX 10 alamut.mageia.org. ml IN MX 20 krampouezh.mageia.org. group IN MX 10 alamut.mageia.org. group IN MX 20 krampouezh.mageia.org. ; machines <%- nodes_txt = '' nodes.keys.sort.each{|nodename| if nodes[nodename].has_key?('ipv4') nodes_txt += nodename + ' IN A ' + nodes[nodename]['ipv4'] + "\n" end if nodes[nodename].has_key?('ipv6') nodes_txt += nodename + ' IN AAAA ' + nodes[nodename]['ipv6'] + "\n" end } -%> <%= nodes_txt %> ;SSHFP alamut IN SSHFP 1 1 ef093dc95002c4af6623f02238749fd59fe81eec alamut IN SSHFP 2 1 179cfa0660550698c4d98f488772b7c7896d96b5 valstar IN SSHFP 1 1 f08e336f678d7c4a8772f17770976af7dd4d7a4f valstar IN SSHFP 2 1 c0c45ed25aa8a9f1723a1ae077dcee61677a56a6 ; alamut ns0 IN A <%= nodes['alamut']['ipv4'] %> ; krampouezh ns1 IN A <%= nodes['krampouezh']['ipv4'] %> ; mageia.org set to IP of champagne : mageia.org. IN A <%= nodes['champagne']['ipv4'] %> www-zarb IN A 212.85.158.22 ; madb on mageia.madb.org madb IN A 163.172.201.211 ; since we have a subdomain, we cannot use a CNAME ml IN A <%= nodes['alamut']['ipv4'] %> ml IN AAAA <%= nodes['alamut']['ipv6'] %> ; mga torrent server and tracker torrent IN A <%= nodes['alamut']['ipv4'] %> torrent IN AAAA <%= nodes['alamut']['ipv6'] %> ; aliases www-test IN CNAME champagne static IN CNAME champagne start IN CNAME champagne blog IN CNAME champagne planet IN CNAME champagne hugs IN CNAME champagne releases IN CNAME champagne dashboard IN CNAME champagne doc IN CNAME champagne archives IN CNAME champagne meetbot IN CNAME krampouezh ldap-slave-1 IN CNAME krampouezh rsync IN CNAME duvel svn IN CNAME duvel git IN CNAME duvel tmp IN CNAME alamut puppetmaster IN CNAME duvel puppet IN CNAME duvel pkgsubmit IN CNAME duvel binrepo IN CNAME duvel repository IN CNAME duvel maintdb IN CNAME duvel ldap IN CNAME duvel ldap-master IN CNAME duvel advisories IN CNAME duvel projects IN CNAME duvel pgsql IN CNAME alamut bcd IN CNAME rabbit epoll IN CNAME alamut xymon IN CNAME alamut wiki IN CNAME alamut gitweb IN CNAME alamut pkgcpan IN CNAME alamut perl IN CNAME alamut tmp IN CNAME alamut people IN CNAME alamut forums IN CNAME alamut forum IN CNAME alamut treasurer IN CNAME alamut bugs IN CNAME sucuk check IN CNAME sucuk identity IN CNAME sucuk identity-trunk IN CNAME sucuk mirrors IN CNAME sucuk nav IN CNAME sucuk pg IN CNAME sucuk svnweb IN CNAME sucuk www IN CNAME sucuk ; build nodes aliases jonund0 IN CNAME jonund jonund1 IN CNAME jonund ecosse0 IN CNAME ecosse ecosse1 IN CNAME ecosse rabbit0 IN CNAME rabbit rabbit1 IN CNAME rabbit rabbit2 IN CNAME rabbit <%# vim: set filetype=bindzone : -%>