90f862ce25
With support for multiple subnets in Ironic Inspector dnsmasq a new parameter 'dnsmasq_ip_subnets' was added. With this new parameter the 'dnsmasq_ip_range' is redundant and should be deprecated. Change-Id: I07cbdd5e5573df23d6bdbfff4588cd870be933d9
22 lines
642 B
Plaintext
22 lines
642 B
Plaintext
port=0
|
|
interface=<%= @dnsmasq_interface %>
|
|
bind-interfaces
|
|
<% @dnsmasq_ip_subnets_real.each do |s| -%>
|
|
<% if s['tag'] and s['netmask'] -%>
|
|
dhcp-range=set:<%= s['tag'] -%>,<%= s['ip_range'] -%>,<%= s['netmask'] -%>,29
|
|
<% elsif s['tag'] -%>
|
|
dhcp-range=set:<%= s['tag'] -%>,<%= s['ip_range'] -%>,29
|
|
<% else -%>
|
|
dhcp-range=<%= s['ip_range'] -%>,29
|
|
<% end -%>
|
|
<% if s['gateway'] -%>
|
|
<% if s['tag'] -%>
|
|
dhcp-option=tag:<%= s['tag'] -%>,option:router,<%= s['gateway'] %>
|
|
<% else -%>
|
|
dhcp-option=option:router,<%= s['gateway'] %>
|
|
<% end -%>
|
|
<% end -%>
|
|
<% end -%>
|
|
dhcp-boot=pxelinux.0,localhost.localdomain,<%= @dnsmasq_local_ip %>
|
|
dhcp-sequential-ip
|