Add configuration for NTP server in Ironic Inspector DHCP server
Followup on Ib69fc0017b3bfbc8da4dfd4301710fbf88be661a. This change adds the ability to provide the NTP (time source) server for multiple DHCP ranges in the Ironic Inspector DHCP server. Change-Id: I4bbfef3a391b8582ae73cbe06138715b43584dec Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
This commit is contained in:
parent
753a7e1a12
commit
5a37bd6a7f
@ -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' %}
|
||||
|
@ -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.
|
||||
|
@ -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.
|
Loading…
Reference in New Issue
Block a user