commit 6d3739de56bcd0810c46b62d45bb9dfc240096e1 parent 6bf0b5c6b22dd71dbb0d28fe7b3eca14ef442fff Author: Andreas Gruhler <andreas.gruhler@adfinis-sygroup.ch> Date: Fri, 20 Mar 2020 14:21:37 +0100 fix qemu_config Diffstat:
M | libvirt/terraform/templates/qemu-config.yml.tpl | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libvirt/terraform/templates/qemu-config.yml.tpl b/libvirt/terraform/templates/qemu-config.yml.tpl @@ -2,6 +2,7 @@ %{ for host in hosts ~} - fqdn: ${host.name} - macaddr: ${tolist(host.network)[0]["macaddr"]} - id: ${split("/",host.id)[2]} + macaddr: ${tolist(host.network_interface)[0]["mac"]} + ipv4: ${tolist(host.network_interface)[0]["addresses"][0]} + id: ${host.id} %{ endfor ~} \ No newline at end of file