Skip to content

Commit

Permalink
Merge "Add configuration for NTP server in Ironic Inspector DHCP serv…
Browse files Browse the repository at this point in the history
…er" into stable/2023.1
  • Loading branch information
Zuul authored and openstack-gerrit committed Nov 28, 2024
2 parents 5d2b52b + b33553e commit 0baa4df
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ansible/roles/ironic/templates/ironic-dnsmasq.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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' %}
Expand Down
10 changes: 10 additions & 0 deletions doc/source/reference/bare-metal/ironic-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 0baa4df

Please sign in to comment.