Merge "Provide dhcp-range even for static inventory"
This commit is contained in:
commit
31930c8fd0
@ -154,13 +154,11 @@ dhcp-hostsfile=/etc/dnsmasq.d/bifrost.dhcp-hosts.d
|
|||||||
# a lease time. If you have more than one network, you will need to
|
# a lease time. If you have more than one network, you will need to
|
||||||
# repeat this for each network on which you want to supply DHCP
|
# repeat this for each network on which you want to supply DHCP
|
||||||
# service.
|
# service.
|
||||||
{% if not inventory_dhcp %}
|
|
||||||
{% if testing %}
|
{% if testing %}
|
||||||
dhcp-range=192.168.122.2,192.168.122.254,12h
|
dhcp-range=192.168.122.2,192.168.122.254,12h
|
||||||
{% else %}
|
{% else %}
|
||||||
dhcp-range={{dhcp_pool_start}},{{dhcp_pool_end}},{{dhcp_lease_time}}
|
dhcp-range={{dhcp_pool_start}},{{dhcp_pool_end}},{{dhcp_lease_time}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
# This is an example of a DHCP range where the netmask is given. This
|
# This is an example of a DHCP range where the netmask is given. This
|
||||||
# is needed for networks we reach the dnsmasq DHCP server via a relay
|
# is needed for networks we reach the dnsmasq DHCP server via a relay
|
||||||
|
Loading…
x
Reference in New Issue
Block a user