bifrost/playbooks/roles/ironic-inspect-node/templates/dhcp-host.j2
Andrey Shestakov 109cf98c03 Add dhcp related tasks to inspection role
In case when inventory_dhcp is enabled and node is not deployed yet,
inspection is not working because dnsmasq ignores requests from unknown
address.

Change-Id: I048acc5093d186637db2e92915eb019dc3baab91
2016-12-27 16:53:39 +02:00

7 lines
204 B
Django/Jinja

# This file is managed by bifrost
{% if inventory_dhcp_static_ip | bool == true %}
{{ nics[0]['mac'] }},{{provisioning_ipv4_address}},{{name}},12h
{% else %}
{{ nics[0]['mac'] }},{{name}},12h
{% endif %}