Skip to content

Commit

Permalink
[ci_gen_kustomize_values] Add mac address mapping for nic1
Browse files Browse the repository at this point in the history
This patch allow the mapping of the `nic1` to the mac address of the
default interface in compute node and is required due to [1]

[1] openstack-k8s-operators/architecture#157

Signed-off-by: Roberto Alfieri <ralfieri@redhat.com>
  • Loading branch information
rebtoor committed Apr 9, 2024
1 parent b012727 commit a22ff3e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ data:
edpm_network_config_os_net_config_mappings:
{% for instance in instances_names %}
edpm-{{ instance }}:
{% if hostvars[instance] is defined %}
nic1: "{{ hostvars[instance].ansible_default_ipv4.macaddress }}"
{% endif %}
nic2: "{{ cifmw_networking_env_definition.instances[instance].networks.ctlplane.mac_addr }}"
{% endfor %}
{% if cifmw_ci_gen_kustomize_values_sshd_ranges | default([]) | length > 0 %}
Expand Down

0 comments on commit a22ff3e

Please sign in to comment.