"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "templates/etc/dhcp.template" between
cobbler-2.8.4.tar.gz and cobbler-3.0.0.tar.gz

About: cobbler is a Linux installation and deployment server that allows for rapid setup of network installation environments. It can help with installation, DNS, DHCP, package updates, power management, configuration management orchestration, and much more.

dhcp.template  (cobbler-2.8.4):dhcp.template  (cobbler-3.0.0)
# ****************************************************************** # ******************************************************************
# Cobbler managed dhcpd.conf file # Cobbler managed dhcpd.conf file
# #
# generated from cobbler dhcp.conf template ($date) # generated from cobbler dhcp.conf template ($date)
# Do NOT make changes to /etc/dhcpd.conf. Instead, make your changes # Do NOT make changes to /etc/dhcpd.conf. Instead, make your changes
# in /etc/cobbler/dhcp.template, as /etc/dhcpd.conf will be # in /etc/cobbler/dhcp.template, as /etc/dhcpd.conf will be
# overwritten. # overwritten.
# #
# ****************************************************************** # ******************************************************************
#import netaddr
ddns-update-style interim; ddns-update-style interim;
allow booting; allow booting;
allow bootp; allow bootp;
ignore client-updates; ignore client-updates;
set vendorclass = option vendor-class-identifier; set vendorclass = option vendor-class-identifier;
option pxe-system-type code 93 = unsigned integer 16; option pxe-system-type code 93 = unsigned integer 16;
subnet 192.168.1.0 netmask 255.255.255.0 { subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.5; option routers 192.168.1.5;
option domain-name-servers 192.168.1.1; option domain-name-servers 192.168.1.1;
option subnet-mask 255.255.255.0; option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.1.100 192.168.1.254; range dynamic-bootp 192.168.1.100 192.168.1.254;
default-lease-time 21600; default-lease-time 21600;
max-lease-time 43200; max-lease-time 43200;
next-server $next_server; next-server $next_server;
class "pxeclients" { class "pxeclients" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient "; match if substring (option vendor-class-identifier, 0, 9) = "PXEClient ";
if option pxe-system-type = 00:02 { if option pxe-system-type = 00:06 {
filename "ia64/elilo.efi"; filename "grub/grub2-x86.efi";
} else if option pxe-system-type = 00:06 {
filename "grub/grub-x86.efi";
} else if option pxe-system-type = 00:07 { } else if option pxe-system-type = 00:07 {
filename "grub/grub-x86_64.efi"; filename "grub/grub2-x86_64.efi";
} else if option pxe-system-type = 00:09 { } else if option pxe-system-type = 00:09 {
filename "grub/grub-x86_64.efi"; filename "grub/grub2-x86_64.efi";
} else { } else {
filename "pxelinux.0"; filename "pxelinux.0";
} }
} }
} }
#for dhcp_tag in $dhcp_tags.keys(): #for dhcp_tag in $dhcp_tags.keys():
## group could be subnet if your dhcp tags line up with your subnets ## group could be subnet if your dhcp tags line up with your subnets
## or really any valid dhcpd.conf construct ... if you only use the ## or really any valid dhcpd.conf construct ... if you only use the
## default dhcp tag in cobbler, the group block can be deleted for a ## default dhcp tag in cobbler, the group block can be deleted for a
## flat configuration ## flat configuration
# group for Cobbler DHCP tag: $dhcp_tag # group for Cobbler DHCP tag: $dhcp_tag
group { group {
#for mac in $dhcp_tags[$dhcp_tag].keys(): #for mac in $dhcp_tags[$dhcp_tag].keys():
#set iface = $dhcp_tags[$dhcp_tag][$mac] #set iface = $dhcp_tags[$dhcp_tag][$mac]
#set mac_dhcp_format = netaddr.EUI($mac,dialect=netaddr.mac_unix)
host $iface.name { host $iface.name {
#if $iface.interface_type == "infiniband": #if $iface.interface_type == "infiniband":
option dhcp-client-identifier = $mac; option dhcp-client-identifier = $mac;
#else #else
hardware ethernet $mac; hardware ethernet $mac_dhcp_format;
#end if #end if
#if $iface.ip_address: #if $iface.ip_address:
fixed-address $iface.ip_address; fixed-address $iface.ip_address;
#end if #end if
#if $iface.hostname: #if $iface.dns_name:
option host-name "$iface.dns_name";
#else if $iface.hostname:
option host-name "$iface.hostname"; option host-name "$iface.hostname";
#end if #end if
#if $iface.netmask: #if $iface.netmask:
option subnet-mask $iface.netmask; option subnet-mask $iface.netmask;
#end if #end if
#if $iface.gateway: #if $iface.if_gateway:
option routers $iface.if_gateway;
#else if $iface.gateway:
option routers $iface.gateway; option routers $iface.gateway;
#end if #end if
#if $iface.enable_gpxe: #if "filename" in $iface.keys() and $iface.filename:
#if $iface.enable_gpxe:
if exists user-class and option user-class = "gPXE" { if exists user-class and option user-class = "gPXE" {
filename "http://$cobbler_server/cblr/svc/op/gpxe/system/$iface.owne r"; filename "http://$cobbler_server/cblr/svc/op/gpxe/system/$iface.owne r";
} else if exists user-class and option user-class = "iPXE" { } else if exists user-class and option user-class = "iPXE" {
filename "http://$cobbler_server/cblr/svc/op/gpxe/system/$iface.owne r"; filename "http://$cobbler_server/cblr/svc/op/gpxe/system/$iface.owne r";
} else { } else {
filename "undionly.kpxe"; filename "undionly.kpxe";
} }
#else #else
filename "$iface.filename"; filename "$iface.filename";
#end if
#end if
#if $iface.next_server:
next-server $iface.next_server;
#end if
#if $iface.name_servers:
#set $mynameservers = ','.join($iface.name_servers)
option domain-name-servers $mynameservers;
#end if #end if
## Cobbler defaults to $next_server, but some users
## may like to use $iface.system.server for proxied setups
next-server $next_server;
## next-server $iface.next_server;
} }
#end for #end for
} }
#end for #end for
 End of changes. 12 change blocks. 
15 lines changed or deleted 25 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)