diff options
author | David Blaisonneau <david.blaisonneau@orange.com> | 2016-08-09 11:32:23 +0200 |
---|---|---|
committer | David Blaisonneau <david.blaisonneau@orange.com> | 2016-08-09 11:32:47 +0200 |
commit | 7411dac64daead190ea6a0566bc5cc7043768ea8 (patch) | |
tree | 10d53d1d40e4b088790c8f56abecaf3d84d59b98 | |
parent | a32d1f2092a6455edd2f4289f68ab3430f9779dd (diff) |
correct maas-nodes templates when node architecture is not defined
Signed-off-by: David Blaisonneau <david.blaisonneau@orange.com>
-rw-r--r-- | ci/config_tpl/maas_tpl/maas-nodes.yaml | 8 |
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] }} |