compass-core/install/dhcp.template
baigk 121d7c3e53 bugfix install.sh
1. start the rabbitmq-server after installation
2. copy the dhcp.conf file to /etc/dhcp/ so that can start dhcp service
3. start the cobblerd service before exceute cobbler get-loaders

Change-Id: I5df56bee14005bbb3a8c5488aca978a400f3a8a8
Signed-off-by: baigk <baiguoku@huawei.com>
2015-12-22 22:54:11 +08:00

57 lines
1.6 KiB
Plaintext

# ******************************************************************
# Cobbler managed dhcpd.conf file
#
# generated from cobbler dhcp.conf template ($date)
# Do NOT make changes to /etc/dhcpd.conf. Instead, make your changes
# in /etc/cobbler/dhcp.template, as /etc/dhcpd.conf will be
# overwritten.
#
# ******************************************************************
ddns-update-style interim;
allow booting;
allow bootp;
deny unknown-clients;
local-address $ipaddr;
log-facility local6;
ignore client-updates;
set vendorclass = option vendor-class-identifier;
option pxe-system-type code 93 = unsigned integer 16;
option space pxelinux;
option pxelinux.magic code 208 = string;
option pxelinux.configfile code 209 = text;
option pxelinux.pathprefix code 210 = text;
option pxelinux.reboottime code 211 = unsigned integer 32;
subnet $subnet netmask $netmask {
option routers $gateway;
option domain-name-servers $ipaddr;
option subnet-mask $netmask;
range dynamic-bootp $ip_range;
default-lease-time 21600;
max-lease-time 43200;
next-server $next_server;
class "pxeclients" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
if option pxe-system-type = 00:02 {
filename "ia64/elilo.efi";
} else if option pxe-system-type = 00:06 {
filename "grub/grub-x86.efi";
} else if option pxe-system-type = 00:07 {
filename "grub/grub-x86_64.efi";
} else {
filename "pxelinux.0";
}
}
}
# group for Cobbler : default
group {
}