diff --git a/inventory/group_vars/all.yaml b/inventory/group_vars/all.yaml index 24b649fec..d0fd19e82 100644 --- a/inventory/group_vars/all.yaml +++ b/inventory/group_vars/all.yaml @@ -19,6 +19,8 @@ node_default_network_interface: eth0 ipv4_subnet_mask: 255.255.255.0 ipv4_gateway: 192.168.1.1 ipv4_nameserver: 8.8.8.8 +dhcp_pool_start: 192.168.1.200 +dhcp_pool_end: 192.168.1.250 # ipmi_bridging: Default undefined. Valid values: "no", "single", and "dual" # See http://docs.openstack.org/developer/ironic/_modules/ironic/drivers/modules/ipmitool.html #ipmi_bridging: no diff --git a/setup/templates/dnsmasq.conf.j2 b/setup/templates/dnsmasq.conf.j2 index 728ad9ee8..8163c671c 100644 --- a/setup/templates/dnsmasq.conf.j2 +++ b/setup/templates/dnsmasq.conf.j2 @@ -109,7 +109,7 @@ interface={{ network_interface }} # want dnsmasq to really bind only the interfaces it is listening on, # uncomment this option. About the only time you may need this is when # running another nameserver on the same machine. -#bind-interfaces +bind-interfaces # If you don't want dnsmasq to read /etc/hosts, uncomment the # following line. @@ -142,7 +142,7 @@ interface={{ network_interface }} # 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 # service. -#dhcp-range=192.168.0.50,192.168.0.150,12h +dhcp-range={{dhcp_pool_start}},{{dhcp_pool_end}},12h # 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