Merge "Add configuration for NTP server in Ironic Inspector DHCP server"

This commit is contained in:
Zuul 2024-10-03 00:24:50 +00:00 committed by Gerrit Code Review
commit a951db941f
3 changed files with 17 additions and 3 deletions

View File

@ -9,9 +9,8 @@ bind-interfaces
{% set tag = item.tag | default('range_' ~ loop.index) %}
{% set lease_time = item.lease_time | default(ironic_dnsmasq_dhcp_default_lease_time) %}
dhcp-range=set:{{ tag }},{{ item.range }},{{ lease_time }}
{% if item.routers is defined %}
dhcp-option=tag:{{ tag }},option:router,{{ item.routers }}
{% endif %}
{% if item.routers is defined %}dhcp-option=tag:{{ tag }},option:router,{{ item.routers }}{% endif %}
{% if item.ntp_server is defined %}dhcp-option=tag:{{ tag }},option:ntp-server,{{ item.ntp_server }}{% endif %}
{% endfor %}
{% if api_address_family == 'ipv6' %}

View File

@ -42,6 +42,16 @@ are possible by separating addresses with commas):
- range: "192.168.5.100,192.168.5.110"
routers: "192.168.5.1"
Together with an router there can be provided the NTP (time source) server.
For example it can be the same address as default router for the range:
.. code-block:: yaml
ironic_dnsmasq_dhcp_ranges:
- range: "192.168.5.100,192.168.5.110"
routers: "192.168.5.1"
ntp_server: "192.168.5.1"
To support DHCP relay, it is also possible to define a netmask in the range.
It is advisable to also provide a router to allow the traffic to reach the
Ironic server.

View File

@ -0,0 +1,5 @@
---
features:
- |
Adds the ability to provide the NTP (time source) server for multiple DHCP
ranges in the Ironic Inspector DHCP server.