Changeset 12432 for trunk


Ignore:
Timestamp:
01/26/11 10:25:25 (13 years ago)
Author:
ramonb
Message:

templates/gina/ramonb_test.cmt:

  • complete GINA DNS tree generation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sara_cmt/templates/gina/ramonb_test.cmt

    r12430 r12432  
    11{% load ramonb_extras %}
    2 
    3 {% store '/var/tmp/test-dns.gina.sara.nl' %}
     2{% noblanklines %}
     3
     4{% epilogue %}
     5/usr/bin/test -f /var/tmp/test-dns/db.gina.sara.nl.manual || /bin/touch /var/tmp/test-dns/db.gina.sara.nl.manual
     6/usr/bin/test -f /var/tmp/test-dns/db.192.168.32.manual || /bin/touch /var/tmp/test-dns/db.192.168.32.manual
     7/usr/bin/test -f /var/tmp/test-dns/db.192.168.33.manual || /bin/touch /var/tmp/test-dns/db.192.168.33.manual
     8/usr/bin/test -f /var/tmp/test-dns/db.192.168.20.manual || /bin/touch /var/tmp/test-dns/db.192.168.20.manual
     9/usr/bin/test -f /var/tmp/test-dns/db.192.168.21.manual || /bin/touch /var/tmp/test-dns/db.192.168.21.manual
     10/usr/bin/test -f /var/tmp/test-dns/db.145.100.48.manual || /bin/touch /var/tmp/test-dns/db.145.100.48.manual
     11/usr/bin/test -f /var/tmp/test-dns/db.145.100.49.manual || /bin/touch /var/tmp/test-dns/db.145.100.49.manual
     12/bin/echo dummy /etc/init.d/named reload
     13{% endepilogue %}
     14
     15{% endnoblanklines %}
     16{% store '/var/tmp/test-dns/db.gina.sara.nl' %}
    417{% noblanklines %}
    518
     
    3043{% endnoblanklines %}
    3144
    32 $INCLUDE iets.manual
     45$INCLUDE db.gina.sara.nl.manual
    3346
    3447$ORIGIN gina.sara.nl.
     
    7689{% endstore %}
    7790
    78 {% store '/var/tmp/test-dns.192.168.32' %}
    79 {% noblanklines %}
    80 $TTL 3600
    81 ;
    82 ; SVN: {{ svn_id }}
    83 ;      {{ svn_url }}
    84 ;
    85 ; This file is automagically generated by CMTSARA
    86 ;
    87 ;             SARA - Computing and Networking Services
    88 ; Date        : Jan 24 2011
    89 ; Version     : {{ version }}
    90 ; Generated   : {% now "r" %}
    91 @       IN      SOA     ns.gina.sara.nl. root.ns.gina.sara.nl. (
    92                                          {% now "YmjH" %}   ; Serial
    93                                         7200            ; Refresh
    94                                         600             ; Retry
    95                                         604800          ; Expire
    96                                         86400 )         ; Minimum
    97         IN      NS      ns.gina.sara.nl.
    98         IN      NS      ns2.gina.sara.nl.
    99 {% endnoblanklines %}
    100 
    101 $INCLUDE test-dns.192.168.32.manual
     91{% store '/var/tmp/test-dns/db.192.168.32' %}
     92{% noblanklines %}
     93$TTL 3600
     94;
     95; SVN: {{ svn_id }}
     96;      {{ svn_url }}
     97;
     98; This file is automagically generated by CMTSARA
     99;
     100;             SARA - Computing and Networking Services
     101; Date        : Jan 24 2011
     102; Version     : {{ version }}
     103; Generated   : {% now "r" %}
     104@       IN      SOA     ns.gina.sara.nl. root.ns.gina.sara.nl. (
     105                                         {% now "YmjH" %}   ; Serial
     106                                        7200            ; Refresh
     107                                        600             ; Retry
     108                                        604800          ; Expire
     109                                        86400 )         ; Minimum
     110        IN      NS      ns.gina.sara.nl.
     111        IN      NS      ns2.gina.sara.nl.
     112{% endnoblanklines %}
     113
     114$INCLUDE db.192.168.32.manual
    102115
    103116$ORIGIN 32.168.192.in-addr.arpa.
     
    114127{% endstore %}
    115128
    116 {% store '/var/tmp/test-dns.productie.out' %}
    117 {% noblanklines %}
    118 
    119 ;
    120 ; SVN: {{ svn_id }}
    121 ;      {{ svn_url }}
    122 ;
    123 ; This file is automagically generated by CMTSARA
    124 ;
    125 ;             SARA - Computing and Networking Services
    126 ; Date        : Jan 24 2011
    127 ; Version     : {{ version }}
    128 ; Generated   : {% now "r" %}
    129 
     129{% store '/var/tmp/test-dns/db.192.168.33' %}
     130{% noblanklines %}
     131$TTL 3600
     132;
     133; SVN: {{ svn_id }}
     134;      {{ svn_url }}
     135;
     136; This file is automagically generated by CMTSARA
     137;
     138;             SARA - Computing and Networking Services
     139; Date        : Jan 24 2011
     140; Version     : {{ version }}
     141; Generated   : {% now "r" %}
     142@       IN      SOA     ns.gina.sara.nl. root.ns.gina.sara.nl. (
     143                                         {% now "YmjH" %}   ; Serial
     144                                        7200            ; Refresh
     145                                        600             ; Retry
     146                                        604800          ; Expire
     147                                        86400 )         ; Minimum
     148        IN      NS      ns.gina.sara.nl.
     149        IN      NS      ns2.gina.sara.nl.
     150{% endnoblanklines %}
     151
     152$INCLUDE db.192.168.33.manual
     153
     154$ORIGIN 33.168.192.in-addr.arpa.
     155{% noblanklines %}
     156{% for iface in ifaces_gina_console %}
     157  {% if iface.ip|base_net == '192.168.33' %}
     158
     159{{ iface.ip|ip_last_digit }}    IN      PTR     {{ iface.label }}.con.gina.sara.nl.
     160
     161  {% endif %}
     162{% endfor %}
     163
     164{% endnoblanklines %}
     165{% endstore %}
     166
     167{% store '/var/tmp/test-dns/db.192.168.20' %}
     168{% noblanklines %}
     169$TTL 3600
     170;
     171; SVN: {{ svn_id }}
     172;      {{ svn_url }}
     173;
     174; This file is automagically generated by CMTSARA
     175;
     176;             SARA - Computing and Networking Services
     177; Date        : Jan 24 2011
     178; Version     : {{ version }}
     179; Generated   : {% now "r" %}
     180@       IN      SOA     ns.gina.sara.nl. root.ns.gina.sara.nl. (
     181                                         {% now "YmjH" %}   ; Serial
     182                                        7200            ; Refresh
     183                                        600             ; Retry
     184                                        604800          ; Expire
     185                                        86400 )         ; Minimum
     186        IN      NS      ns.gina.sara.nl.
     187        IN      NS      ns2.gina.sara.nl.
     188{% endnoblanklines %}
     189
     190$INCLUDE db.192.168.20.manual
     191
     192$ORIGIN 20.168.192.in-addr.arpa.
     193{% noblanklines %}
     194{% for iface in ifaces_gina_admin %}
     195  {% if iface.ip|base_net == '192.168.20' %}
     196
     197{{ iface.ip|ip_last_digit }}    IN      PTR     {{ iface.label }}.int.gina.sara.nl.
     198
     199  {% endif %}
     200{% endfor %}
     201
     202{% endnoblanklines %}
     203{% endstore %}
     204
     205{% store '/var/tmp/test-dns/db.192.168.21' %}
     206{% noblanklines %}
     207$TTL 3600
     208;
     209; SVN: {{ svn_id }}
     210;      {{ svn_url }}
     211;
     212; This file is automagically generated by CMTSARA
     213;
     214;             SARA - Computing and Networking Services
     215; Date        : Jan 24 2011
     216; Version     : {{ version }}
     217; Generated   : {% now "r" %}
     218@       IN      SOA     ns.gina.sara.nl. root.ns.gina.sara.nl. (
     219                                         {% now "YmjH" %}   ; Serial
     220                                        7200            ; Refresh
     221                                        600             ; Retry
     222                                        604800          ; Expire
     223                                        86400 )         ; Minimum
     224        IN      NS      ns.gina.sara.nl.
     225        IN      NS      ns2.gina.sara.nl.
     226{% endnoblanklines %}
     227
     228$INCLUDE db.192.168.21.manual
     229
     230$ORIGIN 21.168.192.in-addr.arpa.
     231{% noblanklines %}
     232{% for iface in ifaces_gina_admin %}
     233  {% if iface.ip|base_net == '192.168.21' %}
     234
     235{{ iface.ip|ip_last_digit }}    IN      PTR     {{ iface.label }}.int.gina.sara.nl.
     236
     237  {% endif %}
     238{% endfor %}
     239
     240{% endnoblanklines %}
     241{% endstore %}
     242
     243{% store '/var/tmp/test-dns/db.145.100.48' %}
     244{% noblanklines %}
     245$TTL 3600
     246;
     247; SVN: {{ svn_id }}
     248;      {{ svn_url }}
     249;
     250; This file is automagically generated by CMTSARA
     251;
     252;             SARA - Computing and Networking Services
     253; Date        : Jan 24 2011
     254; Version     : {{ version }}
     255; Generated   : {% now "r" %}
     256@       IN      SOA     ns.gina.sara.nl. root.ns.gina.sara.nl. (
     257                                         {% now "YmjH" %}   ; Serial
     258                                        7200            ; Refresh
     259                                        600             ; Retry
     260                                        604800          ; Expire
     261                                        86400 )         ; Minimum
     262        IN      NS      ns.gina.sara.nl.
     263        IN      NS      ns2.gina.sara.nl.
     264{% endnoblanklines %}
     265
     266$INCLUDE db.145.100.48.manual
     267
     268$ORIGIN 48.100.145.in-addr.arpa.
     269{% noblanklines %}
    130270{% for iface in ifaces_gina_productie %}
    131 {{ iface.label }}       IN      A       {{ iface.ip }}
    132   {% if iface.cnames != None %}
    133     {% for cname in iface.cnames %}
    134 
    135 {{cname}}       IN      CNAME   {{ iface.label }}
    136 
    137     {% endfor %}
    138   {% endif %}
    139 {% endfor %}
    140 
    141 {% endnoblanklines %}
    142 
    143 {% endstore %}
     271  {% if iface.ip|base_net == '145.100.48' %}
     272
     273{{ iface.ip|ip_last_digit }}    IN      PTR     {{ iface.label }}.gina.sara.nl.
     274
     275  {% endif %}
     276{% endfor %}
     277
     278{% endnoblanklines %}
     279{% endstore %}
     280
     281{% store '/var/tmp/test-dns/db.145.100.49' %}
     282{% noblanklines %}
     283$TTL 3600
     284;
     285; SVN: {{ svn_id }}
     286;      {{ svn_url }}
     287;
     288; This file is automagically generated by CMTSARA
     289;
     290;             SARA - Computing and Networking Services
     291; Date        : Jan 24 2011
     292; Version     : {{ version }}
     293; Generated   : {% now "r" %}
     294@       IN      SOA     ns.gina.sara.nl. root.ns.gina.sara.nl. (
     295                                         {% now "YmjH" %}   ; Serial
     296                                        7200            ; Refresh
     297                                        600             ; Retry
     298                                        604800          ; Expire
     299                                        86400 )         ; Minimum
     300        IN      NS      ns.gina.sara.nl.
     301        IN      NS      ns2.gina.sara.nl.
     302{% endnoblanklines %}
     303
     304$INCLUDE db.145.100.49.manual
     305
     306$ORIGIN 49.100.145.in-addr.arpa.
     307{% noblanklines %}
     308{% for iface in ifaces_gina_productie %}
     309  {% if iface.ip|base_net == '145.100.40' %}
     310
     311{{ iface.ip|ip_last_digit }}    IN      PTR     {{ iface.label }}.gina.sara.nl.
     312
     313  {% endif %}
     314{% endfor %}
     315
     316{% endnoblanklines %}
     317{% endstore %}
Note: See TracChangeset for help on using the changeset viewer.