source: trunk/sara_cmt/templates/lisa/dhcpd.cmt @ 13695

Last change on this file since 13695 was 13695, checked in by jaap, 12 years ago

dhcpd.cmt:

Removed boot from the options

File size: 9.0 KB
Line 
1# This file is automagicly generated by SARA CMT
2#
3#               SARA - Computing and Networking Services
4# Date        : Fri, 13 Aug 2010
5# Version     : {{ version }}
6# Generated   : {% now "r" %}
7#
8# Description : This is an ISC DHCP v3 configuration file.
9#
10# SVN:
11#       {{ svn_id }}
12#       {{ svn_url }}
13#
14{% load cmts_extras %}
15{% noblanklines %}
16
17{% store /etc/dhcp/dhcpd.conf as output %}
18
19{% epilogue %}
20/etc/init.d/isc-dhcp-server restart
21{% endepilogue %}
22
23{% use network with 'name=lisa consoles' as net_lisa_consoles %}
24{% use network with 'name=icua' as net_icua %}
25{% use network with 'name=lisa admin' as net_lisa_admin %}
26{% use network with 'name=lisa switches' as net_lisa_switches %}
27{% use network with 'name=cua' as net_cua %}
28{% use interface with 'network__name=cua' as ifaces_cua %}
29{% use interface with 'network__name=lisa switches' as ifaces_lisa_switches %}
30{% use interface with 'network__name=lisa admin' as ifaces_lisa_admin %}
31{% use interface with 'network__name=lisa extern' as ifaces_lisa_extern %}
32{% use interface with 'network__name=lisa consoles' as ifaces_lisa_consoles %}
33{% use interface with 'network__name=icua' as ifaces_icua %}
34
35{% endnoblanklines %}
36
37# general options
38authoritative;
39ddns-update-style none;
40
41# RB 3/3/09: Added for kvm switch BOOTP
42#
43always-broadcast on;
44always-reply-rfc1048 on;
45
46# The "host-checking" option is only used by Curtis Zinzilieta's DHCP patch.
47# The patch adds functionality to the server for removing specified host
48# addresses from ranges of available ip addresses at startup.  This addresses
49# the issue where a fixed-address reserved for a specific machine gets
50# assigned to a different machine.
51#
52# If you are running a version of dhcpd with this patch, then you will want
53# the "host-checking" option below to be uncommented.  If you are not running
54# the patched dhcpd, you should leave it commented out.  You can find the patch
55# and the matched DHCP v3.0 source code here:  http://systemimager.org/download/
56#host-checking true;
57# Imageserver
58option option-140 code 140 = text;
59option sali-imgsrv code 224 = ip-address;
60
61# log_server_port
62option option-141 code 141 = unsigned integer 32;
63
64# ssh_download_url
65option option-142 code 142 = string;
66
67# flamethrower_directory_portbase
68option option-143 code 143 = string;
69
70# tmpfs_staging
71option option-144 code 144 = string;
72
73# Sara: option-155 for master script name
74#       option-156 for starting telnetd
75option option-155 code 155 = string;
76option option-156 code 156 = string;
77
78# next-server is your network boot server
79#next-server 10.0.43.45;
80
81# log-servers
82#option log-servers 10.0.43.45;
83
84# option-141 is the port number your log server uses
85#option option-141 514;
86
87# set lease time to infinite (-1)
88default-lease-time -1;
89max-lease-time -1;
90
91# Console/Drac network
92#
93subnet {{net_lisa_consoles.netaddress}} netmask {{net_lisa_consoles.netmask}} {
94  option domain-name-servers 192.168.136.2;
95  option routers 192.168.136.1;
96}
97
98# Console/icua network for LDAP servers
99#
100subnet {{net_icua.netaddress}} netmask {{net_icua.netmask}} {
101  option domain-name-servers 192.168.221.10;
102  option routers 192.168.221.1;
103}
104
105# Admin network
106#
107subnet {{net_lisa_admin.netaddress}} netmask {{net_lisa_admin.netmask}} {
108  #option domain-name-servers 192.168.16.3;
109  option domain-name-servers 192.168.145.37, 192.168.144.50;
110  option domain-name "irc.sara.nl";
111
112  # option-140 is the IP address of your SystemImager image server
113  option sali-imgsrv 192.168.144.50;
114  next-server 192.168.144.50;
115
116  # option-143 specifies the Flamethrower directory port.
117  # The default is "9000".
118  #option option-143 "9000";
119
120  # Uncomment one of the two following lines.  The first, if you need to
121  # boot i386 clients, or the second for booting ia64 clients.
122  filename "pxelinux.0";   # i386
123
124  #
125  # option-144 tells your autoinstallclient to spool the image into a tmpfs
126  # prior to laying it down on disk.  It is not certain that this is always
127  # a good thing to do.  And if you're feeling gutsy and want to try it, be
128  # sure that your (memory + swap) is at least twice the size of your image
129  # or your image transfer will fail when the tmpfs filesystem gets full!!!
130  # If unsure, say "no".
131  #
132  option option-144 "n";
133
134  # RB: 24 Juni 2004
135  #
136  # option-156, set this to:
137  # - telnetd   to start a small telnetd before executing master script
138
139  option option-156 "telnetd";
140}
141
142# Switches network
143#
144subnet {{net_lisa_switches.netaddress}} netmask {{net_lisa_switches.netmask}} {
145  option domain-name-servers 192.168.168.2 ;
146  option routers 192.168.168.1;
147
148  # option-140 is the IP address of your SystemImager image server
149  # option option-140 "192.168.136.2";
150
151  # option-143 specifies the Flamethrower directory port.
152  # The default is "9000".
153  # option option-143 "9000";
154
155  #
156  # option-144 tells your autoinstallclient to spool the image into a tmpfs
157  # prior to laying it down on disk.  It is not certain that this is always
158  # a good thing to do.  And if you're feeling gutsy and want to try it, be
159  # sure that your (memory + swap) is at least twice the size of your image
160  # or your image transfer will fail when the tmpfs filesystem gets full!!!
161  # If unsure, say "no".
162  #
163  # option option-144 "n";
164
165  # RB: 24 Juni 2004
166  #
167  # option-156, set this to:
168  # - telnetd   to start a small telnetd before executing master script
169  # option option-156 "telnetd";
170}
171
172# Cua network
173#
174subnet {{net_cua.netaddress}} netmask {{net_cua.netmask}} {
175  #option domain-name-servers 192.168.16.3;
176  option domain-name-servers 145.100.5.30, 145.100.5.45;
177  option routers 145.100.5.65;
178
179  # The IP address of your SystemImager image server
180  option sali-imgsrv 145.100.5.67;
181  next-server 145.100.5.67;
182
183  # Uncomment one of the two following lines.  The first, if you need to
184  # boot i386 clients, or the second for booting ia64 clients.
185  filename "pxelinux.0";   # i386
186
187  #
188  # option-144 tells your autoinstallclient to spool the image into a tmpfs
189  # prior to laying it down on disk.  It is not certain that this is always
190  # a good thing to do.  And if you're feeling gutsy and want to try it, be
191  # sure that your (memory + swap) is at least twice the size of your image
192  # or your image transfer will fail when the tmpfs filesystem gets full!!!
193  # If unsure, say "no".
194  #
195  option option-144 "n";
196
197}
198
199group { # Start Cua network
200        option domain-name "{{net_cua.domain}}";
201
202    {% noblanklines %}
203    {% for iface in ifaces_cua %}
204    {% if iface.hwaddress != None %}
205    host {{iface.fqdn}} {
206        hardware ethernet {{iface.hwaddress}};
207        fixed-address {{iface.ip}};
208        option host-name "{{iface.fqdn}}";
209    }
210    {% endif %}
211    {% endfor %}
212    {% endnoblanklines %}
213
214} # End cua network
215
216group { # Start switches
217        option domain-name "{{net_lisa_switches.domain}}";
218        option option-155 "rc_dell";
219
220    {% noblanklines %}
221    {% for iface in ifaces_lisa_switches %}
222    {% if iface.hwaddress != None %}
223    host {{iface.fqdn}} {
224        filename "";
225        hardware ethernet {{iface.hwaddress}};
226        fixed-address {{iface.ip}};
227        option host-name "{{iface.fqdn}}";
228    }
229    {% endif %}
230    {% endfor %}
231    {% endnoblanklines %}
232} # End switches
233
234group { # Start Admin network (boot) & not extern
235        option domain-name "{{net_lisa_admin.domain}}";
236        option option-155 "rc_dell_ng";
237        option routers 192.168.144.1;
238
239    {% noblanklines %}
240    {% for iface in ifaces_lisa_admin %}
241    {% if iface.hwaddress != None %}
242        {% if 'externe service' not in iface.host.roles %}
243    host {{iface.fqdn}} {
244        hardware ethernet {{iface.hwaddress}};
245        fixed-address {{iface.ip}};
246        option host-name "{{iface.fqdn}}";
247    }
248        {% endif %}
249    {% endif %}
250    {% endfor %}
251    {% endnoblanklines %}
252} # End admin network (boot)
253
254group { # Start Admin network (boot) & extern
255        option domain-name "{{net_lisa_admin.domain}}";
256        option option-155 "rc_dell_ng";
257
258    {% noblanklines %}
259    {% for iface in ifaces_lisa_admin %}
260    {% if iface.hwaddress != None %}
261        {% if 'externe service' in iface.host.roles %}
262    host {{iface.fqdn}} {
263        hardware ethernet {{iface.hwaddress}};
264        fixed-address {{iface.ip}};
265        option host-name "{{iface.fqdn}}";
266    }
267        {% endif %}
268    {% endif %}
269    {% endfor %}
270    {% endnoblanklines %}
271} # End admin network (boot)
272
273group { # Start Console/Drac network
274        option domain-name "{{net_lisa_consoles.domain}}";
275
276    {% noblanklines %}
277    {% for iface in ifaces_lisa_consoles %}
278    {% if iface.hwaddress != None %}
279    host {{iface.fqdn}} {
280        hardware ethernet {{iface.hwaddress}};
281        fixed-address {{iface.ip}};
282        option host-name "{{iface.fqdn}}";
283    }
284    {% endif %}
285    {% endfor %}
286    {% endnoblanklines %}
287} # End Console/Drac network
288
289group { # Start Console/icua network
290        option domain-name "{{icua.domain}}";
291
292    {% noblanklines %}
293    {% for iface in ifaces_icua %}
294    {% if iface.hwaddress != None %}
295    host {{iface.fqdn}} {
296        filename "";
297        hardware ethernet {{iface.hwaddress}};
298        fixed-address {{iface.ip}};
299        option host-name "{{iface.fqdn}}";
300    }
301    {% endif %}
302    {% endfor %}
303    {% endnoblanklines %}
304} # End Console/icua network
Note: See TracBrowser for help on using the repository browser.