source: trunk/sara_cmt/templates/examples/simple_dhcpd.conf.cmt @ 14194

Last change on this file since 14194 was 14194, checked in by sil, 12 years ago

Merged branch 1.0 (until tag 1.0.0) back to trunk

File size: 3.8 KB
Line 
1# This file is automagicly generated by CMT
2#
3#               SARA
4# Date        : Fri 6 Jul 2012
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 cmt_client %}
15
16{% store '/tmp/dhcpd_example.conf' %}
17
18{% epilogue %}
19/bin/echo dummy /etc/init.d/isc-dhcp-server restart
20{% endepilogue %}
21
22{% use network with 'name=lisa admin' as net_lisa_admin %}
23{% use interface with 'network__name=lisa admin' as ifaces_lisa_admin %}
24
25# general options
26authoritative;
27ddns-update-style none;
28
29# RB 3/3/09: Added for kvm switch BOOTP
30#
31always-broadcast on;
32always-reply-rfc1048 on;
33
34# The "host-checking" option is only used by Curtis Zinzilieta's DHCP patch.
35# The patch adds functionality to the server for removing specified host
36# addresses from ranges of available ip addresses at startup.  This addresses
37# the issue where a fixed-address reserved for a specific machine gets
38# assigned to a different machine.
39#
40# If you are running a version of dhcpd with this patch, then you will want
41# the "host-checking" option below to be uncommented.  If you are not running
42# the patched dhcpd, you should leave it commented out.  You can find the patch
43# and the matched DHCP v3.0 source code here:  http://systemimager.org/download/
44#host-checking true;
45# Imageserver
46option option-140 code 140 = text;
47option sali-imgsrv code 224 = ip-address;
48
49# log_server_port
50option option-141 code 141 = unsigned integer 32;
51
52# ssh_download_url
53option option-142 code 142 = string;
54
55# flamethrower_directory_portbase
56option option-143 code 143 = string;
57
58# tmpfs_staging
59option option-144 code 144 = string;
60
61# Sara: option-155 for master script name
62#       option-156 for starting telnetd
63option option-155 code 155 = string;
64option option-156 code 156 = string;
65
66# next-server is your network boot server
67#next-server 10.0.43.45;
68
69# log-servers
70#option log-servers 10.0.43.45;
71
72# option-141 is the port number your log server uses
73#option option-141 514;
74
75# set lease time to infinite (-1)
76default-lease-time -1;
77max-lease-time -1;
78
79# Admin network
80#
81subnet {{net_lisa_admin.netaddress}} netmask {{net_lisa_admin.netmask}} {
82
83
84  option domain-name-servers 192.168.145.38, 192.168.144.50;
85  option domain-name "{{net_lisa_admin.domain}}";
86
87  # option-140 is the IP address of your SystemImager image server
88  option sali-imgsrv 192.168.144.50;
89  next-server 192.168.144.50;
90
91  # option-143 specifies the Flamethrower directory port.
92  # The default is "9000".
93  #option option-143 "9000";
94
95  # Uncomment one of the two following lines.  The first, if you need to
96  # boot i386 clients, or the second for booting ia64 clients.
97  filename "pxelinux.0";   # i386
98
99  #
100  # option-144 tells your autoinstallclient to spool the image into a tmpfs
101  # prior to laying it down on disk.  It is not certain that this is always
102  # a good thing to do.  And if you're feeling gutsy and want to try it, be
103  # sure that your (memory + swap) is at least twice the size of your image
104  # or your image transfer will fail when the tmpfs filesystem gets full!!!
105  # If unsure, say "no".
106  #
107  option option-144 "n";
108
109  # RB: 24 Juni 2004
110  #
111  # option-156, set this to:
112  # - telnetd   to start a small telnetd before executing master script
113
114  option option-156 "telnetd";
115}
116
117group { # Start Admin network (boot) & not extern
118
119    option routers 192.168.144.1;
120
121    {% noblanklines %}
122    {% for iface in ifaces_lisa_admin %}
123    {% if iface.hwaddress != None %}
124        {% if 'externe service' not in iface.host.roles %}
125    host {{iface.fqdn}} {
126        hardware ethernet {{iface.hwaddress}};
127        fixed-address {{iface.ip}};
128        option host-name "{{iface.fqdn}}";
129    }
130        {% endif %}
131    {% endif %}
132    {% endfor %}
133    {% endnoblanklines %}
134} # End admin network (boot)
135
136{% endstore %}
Note: See TracBrowser for help on using the repository browser.