Merge "Add dhcp server option to dnsmasq for baremetal"
This commit is contained in:
commit
434bf036bf
@ -90,6 +90,9 @@ else
|
||||
BM_DNSMASQ_RANGE=${BM_DNSMASQ_RANGE:-}
|
||||
fi
|
||||
|
||||
# BM_DNSMASQ_DNS provide dns server to bootstrap clients
|
||||
BM_DNSMASQ_DNS=${BM_DNSMASQ_DNS:-}
|
||||
|
||||
# BM_FIRST_MAC *must* be set to the MAC address of the node you will boot.
|
||||
# This is passed to dnsmasq along with the kernel/ramdisk to
|
||||
# deploy via PXE.
|
||||
|
4
stack.sh
4
stack.sh
@ -1300,8 +1300,8 @@ if is_service_enabled nova && is_baremetal; then
|
||||
sudo pkill dnsmasq || true
|
||||
sudo dnsmasq --conf-file= --port=0 --enable-tftp --tftp-root=/tftpboot \
|
||||
--dhcp-boot=pxelinux.0 --bind-interfaces --pid-file=/var/run/dnsmasq.pid \
|
||||
--interface=$BM_DNSMASQ_IFACE --dhcp-range=$BM_DNSMASQ_RANGE
|
||||
|
||||
--interface=$BM_DNSMASQ_IFACE --dhcp-range=$BM_DNSMASQ_RANGE \
|
||||
${$BM_DNSMASQ_DNS:+--dhcp-option=option:dns-server,$BM_DNSMASQ_DNS}
|
||||
# ensure callback daemon is running
|
||||
sudo pkill nova-baremetal-deploy-helper || true
|
||||
screen_it baremetal "nova-baremetal-deploy-helper"
|
||||
|
Loading…
Reference in New Issue
Block a user