Merge "Make pxelinux.cfg folder configurable"
This commit is contained in:
commit
e19efd8ca5
|
@ -32,7 +32,7 @@ CONF = cfg.CONF
|
|||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
PXE_CFG_DIR_NAME = 'pxelinux.cfg'
|
||||
PXE_CFG_DIR_NAME = CONF.pxe.pxe_config_subdir
|
||||
|
||||
DHCP_CLIENT_ID = '61' # rfc2132
|
||||
DHCP_TFTP_SERVER_NAME = '66' # rfc2132
|
||||
|
|
|
@ -92,6 +92,13 @@ opts = [
|
|||
cfg.StrOpt('pxe_bootfile_name',
|
||||
default='pxelinux.0',
|
||||
help=_('Bootfile DHCP parameter.')),
|
||||
cfg.StrOpt('pxe_config_subdir',
|
||||
default='pxelinux.cfg',
|
||||
help=_('Directory in which to create symbolic links which '
|
||||
'represent the MAC or IP address of the the ports on '
|
||||
'a node and allow boot loaders to load the PXE '
|
||||
'file for the node. This directory name is relative '
|
||||
'to the PXE or iPXE folders.')),
|
||||
cfg.StrOpt('uefi_pxe_bootfile_name',
|
||||
default='bootx64.efi',
|
||||
help=_('Bootfile DHCP parameter for UEFI boot mode.')),
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
features:
|
||||
- |
|
||||
Adds a new configuration option ``[pxe]pxe_config_subdir`` to allow
|
||||
operators to define the specific directory that may be used inside of
|
||||
``/tftpboot`` or ``/httpboot`` for a boot loader to locate the
|
||||
configuration file for the node. This option defaults to ``pxelinux.cfg``
|
||||
which is the directory that the Syslinux `pxelinux.0` bootloader utilized.
|
||||
Operators may wish to change the directory name if they are using other boot
|
||||
loaders such as `GRUB` or `iPXE`.
|
Loading…
Reference in New Issue