commit 24aead83b8ec95b6f8fa2e9f3aeaa484eeb5252c
Author: Victor Lowther <victor.lowther@gmail.com>
Date: Thu Apr 30 09:33:57 2020 -0500
feat(boot): Add ability to skip booting machines by address.
If the new preference `skipIPBasedBooting` is true, then templates
referenced in a BootEnv with a Path that contains either
{{ .Machine.Address }}
or
{{ .Machine.HexAddress }}
will not be rendered into the static file space. The aim of this
is to combat machines booting into incorrect boot environments
when we are not the DHCP server and we cannot rely on the other DHCP
server to reliably serve is the same IP address every time.
M backend/bootenv.go
M backend/dataTracker.go
M clitest/machines_test.go
M clitest/test-data/output/TestContentCli/contents.list.2/stdout.expect
M clitest/test-data/output/TestContentCli/contents.list.3/stdout.expect
M clitest/test-data/output/TestContentCli/contents.list.4/stdout.expect
M clitest/test-data/output/TestContentCli/contents.list.5/stdout.expect
M clitest/test-data/output/TestContentCli/contents.list/stdout.expect
M clitest/test-data/output/TestContentsFunctionalCli/contents.list.2/stdout.expect
M clitest/test-data/output/TestContentsFunctionalCli/contents.list/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/bootenvs.create.9cf761ce793e16734a1dc898f0391af4/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/bootenvs.destroy.phredhammer/stderr.expect
A clitest/test-data/output/TestMachineSkipIPBooting/bootenvs.destroy.phredhammer/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.192.168.124.0.ipxe.2/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.192.168.124.0.ipxe.3/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.192.168.124.0.ipxe/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.de.ad.be.ef.00.00.ipxe.2/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.de.ad.be.ef.00.00.ipxe.3/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.de.ad.be.ef.00.00.ipxe/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.de.ad.be.ef.00.01.ipxe.2/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.de.ad.be.ef.00.01.ipxe.3/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.de.ad.be.ef.00.01.ipxe/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.pxelinux.cfg/01-de-ad-be-ef-00-00.2/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.pxelinux.cfg/01-de-ad-be-ef-00-00.3/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.pxelinux.cfg/01-de-ad-be-ef-00-00/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.pxelinux.cfg/01-de-ad-be-ef-00-01.2/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.pxelinux.cfg/01-de-ad-be-ef-00-01.3/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.pxelinux.cfg/01-de-ad-be-ef-00-01/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.pxelinux.cfg/C0A07A00.2/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.pxelinux.cfg/C0A07A00.3/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.pxelinux.cfg/C0A07A00/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.pxelinux.cfg/C0A77C00/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.pxelinux.cfg/C0A87C00.2/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.pxelinux.cfg/C0A87C00.3/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/files.static.pxelinux.cfg/C0A87C00/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/machines.create.31bc5a1940b57e5ee30cfb69e55f46a4/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/machines.destroy.Name.bob/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/machines.destroy.bob/stderr.expect
A clitest/test-data/output/TestMachineSkipIPBooting/prefs.set.skipIPBasedBooting.false/stdout.expect
A clitest/test-data/output/TestMachineSkipIPBooting/prefs.set.skipIPBasedBooting.true/stdout.expect
M server/server.go
End of Note