1 {% for node in lab.racks[0].nodes %}
2 {% if node.architecture=='x86_64' %}
3 - architecture: amd64/generic
6 {% for nic in node.nics %}
7 - mac_address: {{ nic.mac[0] }}
12 {% for nic in node.nics %}
17 {% if node.power.type=='ipmi' %}
18 address: {{ node.power.address }}
20 pass: {{ node.power.pass }}
22 user: {{ node.power.user }}
23 {% elif node.power.type=='wakeonlan' %}
25 mac_address: {{ node.power.mac_address }}
27 tags: {{ ' '.join(node.roles) }}