Add dhcp server option to dnsmasq for baremetal
This sets the dns option for baremetal deploy clients. this is useful for clients who may require external access during the deployment process. Change-Id: Ibe680d2acaad826e4868223ebfd1f112d7796662 Authored-by: Chris Krelle <nobodycam@gmail.com>
This commit is contained in:
parent
f3da41a5ee
commit
35336282da
@ -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
@ -1285,8 +1285,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