make specification of fabric interfaces configurable
Change-Id: Id6db46e3bb0c13d1c2916255c5bd6419bc906e4b
(cherry picked from commit b247b1d3efa81b3d1fa5b30be537d5d50c5c18c8)
diff --git a/roles/compute-node/tasks/main.yml b/roles/compute-node/tasks/main.yml
index 236fae4..f74ab55 100644
--- a/roles/compute-node/tasks/main.yml
+++ b/roles/compute-node/tasks/main.yml
@@ -152,7 +152,7 @@
- name: Consistent Interface Naming
become: yes
- script: files/rename_ifaces.sh "{{ compute_node.interfaces.fabric }}" "{{ compute_node.addresses.fabric }}" "{{ compute_node.interfaces.external }}" "{{ compute_node.addresses.external }}" "{{ compute_node.gateway.external }}" "{{ compute_node.interfaces.management }}" "{{ compute_node.addresses.management }}" "{{ compute_node.gateway.management }}"
+ script: files/rename_ifaces.sh "{{ compute_node.interfaces.fabric }}" "{{ compute_node.addresses.fabric }}" "{{ compute_node.interfaces.external }}" "{{ compute_node.addresses.external }}" "{{ compute_node.gateway.external }}" "{{ compute_node.interfaces.management }}" "{{ compute_node.addresses.management }}" "{{ compute_node.gateway.management }}" "{{ compute_node.fabric_iface_match }}"
register: ifaces_changed
changed_when: ifaces_changed.stdout.find("true") != -1
tags: