bifrost/playbooks/roles/bifrost-ironic-install/templates/static.hosts.j2
Clint Byrum b0d8b037fa Add static DHCP for dynamic inventory
In some cases it is simpler to just configure the images being deployed
to use DHCP, rather than teach them how to put the IP address in the
configdrive in the right place. This will setup dnsmasq to send the
static address for the box. It will use that address for the deploy as
well.

Co-Authored-By: Clint Byrum <clint@fewbar.com>
Co-Authored-By: Gregory Haynes <greg@greghaynes.net>
Co-Authored-By: Julia Kreger <juliaashleykreger@gmail.com>
Change-Id: I524958be5e787d42c91278baf2c4a14beb965e7c
2015-10-06 08:12:37 -04:00

5 lines
135 B
Django/Jinja

# This file is managed by bifrost
{% for hostname, host in dynamic_inventory %}
{% host['ipv4_address'] %} {% hostname %}
{% endfor %}