- Timestamp:
- 05/24/11 08:31:48 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sara_cmt/templates/gridms/dhcpd.cmt
r13005 r13006 15 15 {% noblanklines %} 16 16 17 {% store / tmp/dhcpd.conf as output %}17 {% store /etc/dhcpd.conf as output %} 18 18 19 19 {% epilogue %} 20 /etc/init.d/dhcpd restart 20 21 {% endepilogue %} 21 22 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 %} 24 25 25 26 {% endnoblanklines %} 26 # This file is automagicly generated by SARA CMT27 #28 # SARA - Computing and Networking Services29 # Date : Fri, 13 Aug 201030 # Version : SARA CMT CLI 0.931 # Generated : Mon, 23 May 2011 10:33:28 +020032 #33 # Description : This is an ISC DHCP v3 configuration file.34 #35 # SVN:36 # $Id:$37 # $URL:$38 #39 27 40 28 ## BEGIN general options … … 241 229 ## BEGIN 242 230 # 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;231 subnet {{ 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 }}; 247 235 248 236 default-lease-time 14400; 249 237 max-lease-time 172800; 250 238 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 }}; 253 241 254 242 filename "pxelinux.0"; … … 256 244 # hosts 257 245 group { 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}}"; 263 251 } 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 %} 310 253 } 311 254 ## END
Note: See TracChangeset
for help on using the changeset viewer.