f2293c5106
This change adds flag 'inventory_dhcp_static_ip' to the deploy-nodes-dynamic role. If set to true, it will read the new 'provisioning_ipv4_address' key from the inventory machine section and use that as assigned IP for the machine mac. If set to false, dnsmasq will assign IPs from the configured DHCP range. An inventory machine example specifying provisioning_ipv4_address: "compute00.hpuseast.ic.openstack.org": { "ansible_ssh_host": "15.126.48.52", "ipv4_address": "15.126.48.52", "provisioning_ipv4_address": "10.23.212.5", "uuid": "30303536-3734-5355-4532-333745314C41", "driver_info": { "power": { "ipmi_address": "1.1.1.1", "ipmi_username": "xxx" "ipmi_password": "moarxxx" } } Change-Id: I9083cd34096aad04136564c2ded024527c88c711
7 lines
189 B
Django/Jinja
7 lines
189 B
Django/Jinja
# This file is managed by bifrost
|
|
{% if inventory_dhcp_static_ip %}
|
|
{{ nics[0]['mac'] }},{{provisioning_ipv4_address}},{{name}},12h
|
|
{% else %}
|
|
{{ nics[0]['mac'] }},{{name}},12h
|
|
{% endif %}
|