bifrost/doc/source
Mark Goddard 92eb477798 Allow undionly.kpxe boot option to be overridden
As an operator, I may wish to provide DHCP boot options for hosts not
managed by bifrost using the bifrost dnsmasq server.

If a dhcp-boot configuration option is provided to dnsmasq via a file in
/etc/dnsmasq.d/, and the server is not booted via iPXE, it will be
overridden by the undionly.kpxe option added by bifrost in
/etc/dnsmasq.conf.

This occurs because the negated tag match !ipxe used in the
/undionly.kpxe dhcp-boot entry will match all hosts not using iPXE. The
dhcp-boot entries are processed in order and the last matching entry
wins. Since the config-dir option appears before the dhcp-boot options,
user-provided options are processed first and are therefore overridden.

The solution here is fairly simple - use a positive match for the ipxe
tag:

dhcp-boot=tag:ipxe,http://host:port/boot.ipxe
dhcp-boot=/undionly.kpxe

An entry with a tag will always win over the entry without a tag
specified, so it is now possible to add a rule to override
undionly.kpxe.

Change-Id: Ic0637e14504def73fbc0333eee9dc2456c57c32e
Closes-Bug: #1675367
2017-03-27 11:21:52 +01:00
..
deploy Allow undionly.kpxe boot option to be overridden 2017-03-27 11:21:52 +01:00
conf.py [Trivial] Remove executable privilege of doc/source/conf.py 2016-04-29 21:19:33 +08:00
contributing.rst Add cookiecutter-generated files for project 2015-06-10 08:40:19 -07:00
howto.rst Allow undionly.kpxe boot option to be overridden 2017-03-27 11:21:52 +01:00
index.rst Documentation cleanup 2017-03-02 18:55:41 +00:00
offline-install.rst Documentation cleanup 2017-03-02 18:55:41 +00:00
readme.rst Add cookiecutter-generated files for project 2015-06-10 08:40:19 -07:00
troubleshooting.rst Clean up troubleshooting.rst markup 2015-09-11 14:22:20 -07:00
vagrant.rst Cleanups for README.vagrant 2015-09-14 08:44:24 -04:00