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

Last change on this file since 13297 was 13297, checked in by bas, 13 years ago

changed ldap stub for sali

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