From 61ffac59e52b3462a564eab3261cd66565d6a9cf Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 30 Aug 2017 16:47:20 +0000 Subject: [PATCH] Use provisioning network to access TFTP server during workload inspection --- .../roles/kolla-openstack/templates/ironic-dnsmasq.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/kolla-openstack/templates/ironic-dnsmasq.conf.j2 b/ansible/roles/kolla-openstack/templates/ironic-dnsmasq.conf.j2 index cc64cae08..df61f9ba2 100644 --- a/ansible/roles/kolla-openstack/templates/ironic-dnsmasq.conf.j2 +++ b/ansible/roles/kolla-openstack/templates/ironic-dnsmasq.conf.j2 @@ -4,9 +4,9 @@ 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 %}{{ kolla_internal_vip_address }}{% endraw %} +dhcp-option=option:tftp-server,{% raw %}{{ hostvars[inventory_hostname]['ansible_' ~ provision_interface | replace('-', '_')]['ipv4']['address'] }}{% endraw %} -dhcp-option=option:server-ip-address,{% raw %}{{ kolla_internal_vip_address }}{% endraw %} +dhcp-option=option:server-ip-address,{% raw %}{{ hostvars[inventory_hostname]['ansible_' ~ provision_interface | replace('-', '_')]['ipv4']['address'] }}{% endraw %} dhcp-option=option:bootfile-name,pxelinux.0 dhcp-option=210,/tftpboot/