Changeset 13006 for trunk


Ignore:
Timestamp:
05/24/11 08:31:48 (13 years ago)
Author:
dennis
Message:

Completed dhcp file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sara_cmt/templates/gridms/dhcpd.cmt

    r13005 r13006  
    1515{% noblanklines %}
    1616
    17 {% store /tmp/dhcpd.conf as output %}
     17{% store /etc/dhcpd.conf as output %}
    1818
    1919{% epilogue %}
     20/etc/init.d/dhcpd restart
    2021{% endepilogue %}
    2122
    22 {% use network with 'name=lisa consoles' as net_lisa_consoles %}
    23 {% use interface with 'network__name=cua' as ifaces_cua %}
     23{% use network with 'name=CentraalArchief management' as net_ca_mngt %}
     24{% use interface with 'network__name=CentraalArchief management' as ifaces_ca_mngt %}
    2425
    2526{% endnoblanklines %}
    26 # This file is automagicly generated by SARA CMT
    27 #
    28 #               SARA - Computing and Networking Services
    29 # Date        : Fri, 13 Aug 2010
    30 # Version     : SARA CMT CLI 0.9
    31 # Generated   : Mon, 23 May 2011 10:33:28 +0200
    32 #
    33 # Description : This is an ISC DHCP v3 configuration file.
    34 #
    35 # SVN:
    36 #       $Id:$
    37 #       $URL:$
    38 #
    3927
    4028## BEGIN general options
     
    241229## BEGIN
    242230# m-ca network
    243 subnet 192.168.19.0 netmask 255.255.255.224 {
    244   option domain-name "m-ca.sara.nl";
    245   option domain-name-servers 127.0.0.1;
    246   option routers 192.168.19.1;
     231subnet {{ net_ca_mngt.netaddress }} netmask {{ net_ca_mngt.netmask }} {
     232  option domain-name "{{ net_ca_mngt.domain }}";
     233  option domain-name-servers {{ net_ca_mngt.gateway }};
     234  option routers {{ net_ca_mngt.gateway }};
    247235
    248236  default-lease-time 14400;
    249237  max-lease-time 172800;
    250238
    251   next-server 192.168.19.1;
    252   option sali-imgsrv 192.168.19.1;
     239  next-server {{ net_ca_mngt.gateway }};
     240  option sali-imgsrv {{ net_ca_mngt.gateway }};
    253241
    254242  filename "pxelinux.0";
     
    256244# hosts
    257245group {
    258    
    259     host tm3.m-ca.m-ca.sara.nl {
    260         hardware ethernet 00:00:11:00:11:02;
    261         fixed-address 192.168.19.8;
    262         option host-name "tm3.m-ca.m-ca.sara.nl";
     246    {% noblanklines %}{% for iface in ifaces_ca_mngt %}
     247    host {{iface.fqdn}} {
     248        hardware ethernet {{iface.hwaddress}};
     249        fixed-address {{iface.ip}};
     250        option host-name "{{iface.fqdn}}";
    263251    }
    264     host tm2.m-ca.m-ca.sara.nl {
    265         hardware ethernet 00:00:11:00:15:02;
    266         fixed-address 192.168.19.7;
    267         option host-name "tm2.m-ca.m-ca.sara.nl";
    268     }
    269     host tm1.m-ca.m-ca.sara.nl {
    270         hardware ethernet 00:00:11:00:17:02;
    271         fixed-address 192.168.19.6;
    272         option host-name "tm1.m-ca.m-ca.sara.nl";
    273     }
    274     host service.m-ca.m-ca.sara.nl {
    275         hardware ethernet 00:25:90:2a:e3:92;
    276         fixed-address 192.168.19.9;
    277         option host-name "service.m-ca.m-ca.sara.nl";
    278     }
    279     host dmf.m-ca.m-ca.sara.nl {
    280         hardware ethernet 00:00:11:00:21:02;
    281         fixed-address 192.168.19.2;
    282         option host-name "dmf.m-ca.m-ca.sara.nl";
    283     }
    284     host dm1.m-ca.m-ca.sara.nl {
    285         hardware ethernet 00:00:11:00:23:02;
    286         fixed-address 192.168.19.3;
    287         option host-name "dm1.m-ca.m-ca.sara.nl";
    288     }
    289     host dm2.m-ca.m-ca.sara.nl {
    290         hardware ethernet 00:00:11:00:25:02;
    291         fixed-address 192.168.19.4;
    292         option host-name "dm2.m-ca.m-ca.sara.nl";
    293     }
    294     host dm3.m-ca.m-ca.sara.nl {
    295         hardware ethernet 00:00:11:00:29:02;
    296         fixed-address 192.168.19.5;
    297         option host-name "dm3.m-ca.m-ca.sara.nl";
    298     }
    299     host test1.m-ca.m-ca.sara.nl {
    300         hardware ethernet 00:25:90:2a:eb:8c;
    301         fixed-address 192.168.19.20;
    302         option host-name "test1.m-ca.m-ca.sara.nl";
    303     }
    304     host test2.m-ca.m-ca.sara.nl {
    305         hardware ethernet 00:25:90:2a:e4:36;
    306         fixed-address 192.168.19.21;
    307         option host-name "test2.m-ca.m-ca.sara.nl";
    308     }
    309    
     252    {% endfor %}{% endnoblanklines %}
    310253}
    311254## END
Note: See TracChangeset for help on using the changeset viewer.