summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorDavid Blaisonneau <david.blaisonneau@orange.com>2016-08-09 11:32:23 +0200
committerDavid Blaisonneau <david.blaisonneau@orange.com>2016-08-09 11:32:47 +0200
commit7411dac64daead190ea6a0566bc5cc7043768ea8 (patch)
tree10d53d1d40e4b088790c8f56abecaf3d84d59b98 /ci
parenta32d1f2092a6455edd2f4289f68ab3430f9779dd (diff)
correct maas-nodes templates when node architecture is not defined
Signed-off-by: David Blaisonneau <david.blaisonneau@orange.com>
Diffstat (limited to 'ci')
-rw-r--r--ci/config_tpl/maas_tpl/maas-nodes.yaml8
1 files changed, 4 insertions, 4 deletions
diff --git a/ci/config_tpl/maas_tpl/maas-nodes.yaml b/ci/config_tpl/maas_tpl/maas-nodes.yaml
index 4b5a0ce0..dc341851 100644
--- a/ci/config_tpl/maas_tpl/maas-nodes.yaml
+++ b/ci/config_tpl/maas_tpl/maas-nodes.yaml
@@ -1,13 +1,13 @@
{% for node in lab.racks[0].nodes %}
-{% if node.architecture=='x86_64' %}
- - architecture: amd64/generic
-{% endif %}
- interfaces:
+ - interfaces:
{% for nic in node.nics %}
- mac_address: {{ nic.mac[0] }}
mode: auto
name: {{ nic.ifname }}
{% endfor %}
+{% if node.architecture=='x86_64' %}
+ architecture: amd64/generic
+{% endif %}
mac_addresses:
{% for nic in node.nics %}
- {{ nic.mac[0] }}