Support dhcp-hostsdir option in inspector dnsmasq template

This is required if the Ironic Inspector dnsmasq PXE filter is in use.

Change-Id: I35f19f447584540860be1989abcae3d6882b98c1
This commit is contained in:
Mark Goddard 2018-07-27 19:00:33 +00:00 committed by Will Szumski
parent 679de79cfc
commit 31765172d6
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ dhcp-option=option:bootfile-name,{{ ironic_dnsmasq_boot_file | default('undionly
dhcp-option=option:bootfile-name,{{ ironic_dnsmasq_boot_file | default('pxelinux.0') }}
{% endif %}{% endraw %}
{% raw %}{% if ironic_inspector_pxe_filter | default == 'dnsmasq' %}
dhcp-hostsdir=/etc/dnsmasq/dhcp-hostsdir
{% endif %}{% endraw %}
{% if kolla_extra_ironic_dnsmasq %}
{{ kolla_extra_ironic_dnsmasq }}
{% endif %}