Offload kernel module management to openstack_hosts

With [1] being implemented, we are having quite a good baseline
for managing kernel modules in openstack_hosts role.

So we can offload module management to the role alike to
networking configuration.

Also, 8021q is laready present and managed there [2].

[1] https://review.opendev.org/c/openstack/openstack-ansible-openstack_hosts/+/951852
[2] 26deaeb701/vars/debian.yml (L25)

Change-Id: I599d75dcc24cbcfa594cf1293e4c629b2c117c4a
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
This commit is contained in:
Dmitriy Rabotyagov
2025-06-28 02:31:28 +02:00
parent 31f12f54ea
commit 89675927b0
4 changed files with 9 additions and 9 deletions

View File

@@ -138,12 +138,3 @@
- (host_data_disk_size_bytes | int) < (host_data_disk_min_size_bytes | int)
tags:
- check-disk-size
- name: Ensure that the kernel has VXLAN, VLAN, and bonding support
community.general.modprobe:
name: "{{ item }}"
state: present
with_items:
- vxlan
- bonding
- 8021q

View File

@@ -154,6 +154,9 @@
- src: aio1_networks.yml.j2
dest: host_vars/aio1/networks.yml
condition: true
- src: aio1_kernel.yml.j2
dest: host_vars/aio1/kernel.yml
condition: true
- src: user_variables_ceph.yml.j2
dest: user_variables_ceph.yml
condition: "{{ 'ceph' in bootstrap_host_scenarios_expanded }}"

View File

@@ -0,0 +1,5 @@
---
aio1_kernel_modules_bootstrap:
- name: vxlan
- name: bonding

View File

@@ -48,6 +48,7 @@ openstack_hosts_journald_config:
openstack_hosts_systemd_services: "{{ query('vars', *query('varnames', '^aio_systemd_services_')) | flatten(levels=1) }}"
openstack_hosts_systemd_networkd_networks: "{{ query('vars', *query('varnames', '^aio_systemd_networkd_networks_')) | flatten(levels=1) }}"
openstack_hosts_systemd_networkd_devices: "{{ query('vars', *query('varnames', '^aio_systemd_networkd_devices_')) | flatten(levels=1) }}"
openstack_host_specific_kernel_modules: "{{ query('vars', *query('varnames', '^aio1_kernel_modules_')) | flatten(levels=1) }}"
openstack_hosts_systemd_networkd_prefix: "osa_testing"
{% endraw %}