kayobe/ansible/roles/kolla-openstack/templates/ironic-dnsmasq.conf.j2
Mark Goddard fa69ee2775 Send default gateway DHCP option during workload inspection
This allows us to access an inspector API that is not on the provisioning network.
2017-08-30 16:48:30 +00:00

21 lines
781 B
Django/Jinja

port=0
interface={% raw %}{{ ironic_dnsmasq_interface }}{% endraw %}
bind-interfaces
dhcp-range={{ kolla_inspector_dhcp_pool_start }},{{ kolla_inspector_dhcp_pool_end }},12h
dhcp-sequential-ip
dhcp-option=option:tftp-server,{% raw %}{{ hostvars[inventory_hostname]['ansible_' ~ provision_interface | replace('-', '_')]['ipv4']['address'] }}{% endraw %}
dhcp-option=option:server-ip-address,{% raw %}{{ hostvars[inventory_hostname]['ansible_' ~ provision_interface | replace('-', '_')]['ipv4']['address'] }}{% endraw %}
{% if kolla_inspector_default_gateway %}
dhcp-option=3,{{ kolla_inspector_default_gateway }}
{% endif %}
dhcp-option=option:bootfile-name,pxelinux.0
dhcp-option=210,/tftpboot/
{% if kolla_extra_ironic_dnsmasq %}
{{ kolla_extra_ironic_dnsmasq }}
{% endif %}