bifrost/playbooks/roles/bifrost-deploy-nodes-dynamic/templates/dhcp-host.j2
Yolanda Robla d94359f8e4 Force type casting to boolean in dhcp flag
That is going to fall under true if we pass it
as string, causing our tests to fail.

Change-Id: Ie87d624c876f36ad1ded7f9b250c38958cf8937e
2016-02-03 17:01:18 +01:00

7 lines
196 B
Django/Jinja

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