Skip to content

Commit 53c876c

Browse files
owenjonesAlex-Welsh
authored andcommitted
Update ci-tenks network interfaces for Rocky 10
Network interfaces updated for Rocky 10 - `ens*` is now the default, with `eth*` only being used on Rocky 9
1 parent d4f7a31 commit 53c876c

4 files changed

Lines changed: 20 additions & 20 deletions

File tree

etc/kayobe/environments/ci-tenks/inventory/group_vars/compute/network-interfaces

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
###############################################################################
33
# Network interface definitions for the compute group.
44

5-
provision_oc_interface: "{{ 'ens2' if os_distribution == 'ubuntu' else 'eth0' }}"
5+
provision_oc_interface: "{{ 'eth0' if os_distribution == 'rocky' and os_release == '9' else 'ens2' }}"
66
# Route via the seed-hypervisor to the outside world.
77
provision_oc_gateway: 192.168.33.4
88

9-
internal_interface: "{{ 'ens3' if os_distribution == 'ubuntu' else 'eth1' }}.{{ internal_vlan }}"
9+
internal_interface: "{{ 'eth1' if os_distribution == 'rocky' and os_release == '9' else 'ens3' }}.{{ internal_vlan }}"
1010

11-
storage_interface: "{{ 'ens3' if os_distribution == 'ubuntu' else 'eth1' }}.{{ storage_vlan }}"
11+
storage_interface: "{{ 'eth1' if os_distribution == 'rocky' and os_release == '9' else 'ens3' }}.{{ storage_vlan }}"
1212

13-
tunnel_interface: "{{ 'ens3' if os_distribution == 'ubuntu' else 'eth1' }}.{{ tunnel_vlan }}"
13+
tunnel_interface: "{{ 'eth1' if os_distribution == 'rocky' and os_release == '9' else 'ens3' }}.{{ tunnel_vlan }}"
1414

15-
external_interface: "{{ 'ens3' if os_distribution == 'ubuntu' else 'eth1' }}.{{ external_vlan }}"
15+
external_interface: "{{ 'eth1' if os_distribution == 'rocky' and os_release == '9' else 'ens3' }}.{{ external_vlan }}"
1616

1717
###############################################################################
1818
# Dummy variable to allow Ansible to accept this file.

etc/kayobe/environments/ci-tenks/inventory/group_vars/controllers/network-interfaces

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
###############################################################################
33
# Network interface definitions for the controller group.
44

5-
provision_oc_interface: "{{ 'ens2' if os_distribution == 'ubuntu' else 'eth0' }}"
5+
provision_oc_interface: "{{ 'eth0' if os_distribution == 'rocky' and os_release == '9' else 'ens2' }}"
66
# Route via the seed-hypervisor to the outside world.
77
provision_oc_gateway: 192.168.33.4
88

9-
mgmt_interface: "{{ 'ens3' if os_distribution == 'ubuntu' else 'eth1' }}"
9+
mgmt_interface: "{{ 'eth1' if os_distribution == 'rocky' and os_release == '9' else 'ens3' }}"
1010

11-
provision_wl_interface: "br{{ 'ens4' if os_distribution == 'ubuntu' else 'eth2' }}"
11+
provision_wl_interface: "br{{ 'eth2' if os_distribution == 'rocky' and os_release == '9' else 'ens4' }}"
1212
provision_wl_bridge_ports:
13-
- "{{ 'ens4' if os_distribution == 'ubuntu' else 'eth2' }}"
13+
- "{{ 'eth2' if os_distribution == 'rocky' and os_release == '9' else 'ens4' }}"
1414

15-
internal_interface: "{{ 'ens4' if os_distribution == 'ubuntu' else 'eth2' }}.{{ internal_vlan }}"
15+
internal_interface: "{{ 'eth2' if os_distribution == 'rocky' and os_release == '9' else 'ens4' }}.{{ internal_vlan }}"
1616

17-
external_interface: "br{{ 'ens4' if os_distribution == 'ubuntu' else 'eth2' }}.{{ external_vlan }}"
17+
external_interface: "br{{ 'eth2' if os_distribution == 'rocky' and os_release == '9' else 'ens4' }}.{{ external_vlan }}"
1818

19-
public_interface: "{{ 'ens4' if os_distribution == 'ubuntu' else 'eth2' }}.{{ public_vlan }}"
19+
public_interface: "{{ 'eth2' if os_distribution == 'rocky' and os_release == '9' else 'ens4' }}.{{ public_vlan }}"
2020

21-
storage_interface: "{{ 'ens4' if os_distribution == 'ubuntu' else 'eth2' }}.{{ storage_vlan }}"
21+
storage_interface: "{{ 'eth2' if os_distribution == 'rocky' and os_release == '9' else 'ens4' }}.{{ storage_vlan }}"
2222

23-
tunnel_interface: "{{ 'ens4' if os_distribution == 'ubuntu' else 'eth2' }}.{{ tunnel_vlan }}"
23+
tunnel_interface: "{{ 'eth2' if os_distribution == 'rocky' and os_release == '9' else 'ens4' }}.{{ tunnel_vlan }}"
2424

2525
###############################################################################
2626
# Dummy variable to allow Ansible to accept this file.

etc/kayobe/environments/ci-tenks/inventory/group_vars/seed/network-interfaces

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
###############################################################################
33
# Network interface definitions for the seed group.
44

5-
mgmt_interface: "{{ 'ens2' if os_distribution == 'ubuntu' else 'eth0' }}"
5+
mgmt_interface: "{{ 'eth0' if os_distribution == 'rocky' and os_release == '9' else 'ens2' }}"
66

7-
provision_oc_interface: "{{ 'ens3' if os_distribution == 'ubuntu' else 'eth1' }}"
7+
provision_oc_interface: "{{ 'eth1' if os_distribution == 'rocky' and os_release == '9' else 'ens3' }}"
88
# Route via the seed-hypervisor to the outside world.
99
provision_oc_gateway: 192.168.33.4
1010

etc/kayobe/environments/ci-tenks/inventory/group_vars/storage/network-interfaces

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
###############################################################################
33
# Network interface definitions for the compute group.
44

5-
provision_oc_interface: "{{ 'ens2' if os_distribution == 'ubuntu' else 'eth0' }}"
5+
provision_oc_interface: "{{ 'eth0' if os_distribution == 'rocky' and os_release == '9' else 'ens2' }}"
66
# Route via the seed-hypervisor to the outside world.
77
provision_oc_gateway: 192.168.33.4
88

9-
internal_interface: "{{ 'ens3' if os_distribution == 'ubuntu' else 'eth1' }}.{{ internal_vlan }}"
9+
internal_interface: "{{ 'eth1' if os_distribution == 'rocky' and os_release == '9' else 'ens3' }}.{{ internal_vlan }}"
1010

11-
storage_interface: "{{ 'ens3' if os_distribution == 'ubuntu' else 'eth1' }}.{{ storage_vlan }}"
11+
storage_interface: "{{ 'eth1' if os_distribution == 'rocky' and os_release == '9' else 'ens3' }}.{{ storage_vlan }}"
1212

13-
storage_mgmt_interface: "{{ 'ens3' if os_distribution == 'ubuntu' else 'eth1' }}.{{ storage_mgmt_vlan }}"
13+
storage_mgmt_interface: "{{ 'eth1' if os_distribution == 'rocky' and os_release == '9' else 'ens3' }}.{{ storage_mgmt_vlan }}"
1414

1515
###############################################################################
1616
# Dummy variable to allow Ansible to accept this file.

0 commit comments

Comments
 (0)