bifrost/playbooks
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
..
inventory Use env lookup to determine HOME for SSH pubkey 2017-02-17 15:53:52 +00:00
library Fix indentation of code in network_metadata.py 2017-01-13 15:41:36 +00:00
roles Allow undionly.kpxe boot option to be overridden 2017-03-27 11:21:52 +01:00
cleanup-deployment-images.yaml Migrate playbooks to use 'become' 2015-10-15 07:32:05 -07:00
deploy-dynamic.yaml Allow deploy-dynamic on remote host 2017-02-07 19:07:56 +00:00
enroll-dynamic.yaml Allow enroll-dynamic on remote host 2017-02-01 15:01:31 +00:00
example-deploy-all-available-nodes.yaml Migrate playbooks to use 'become' 2015-10-15 07:32:05 -07:00
install.yaml Fix clouds var in install.yaml playbook 2017-03-23 14:41:35 +02:00
redeploy-dynamic.yaml Add redeploy-dynamic playbook 2016-06-08 12:59:28 +00:00
test-bifrost-create-vm.yaml Use JSON baremetal data in testing 2017-03-06 17:06:30 +02:00
test-bifrost.yaml Merge "Change dib element to enable serial console" 2017-03-20 13:42:13 +00:00