Implement post openstack_hosts playbook

There are usecases, where deployer might want to have a hook
after openstack_hosts are configured in terms of networks, mounts
and etc, but before LXC containers are spawned.

Change-Id: Iac71e4b29af1c8bfe9d350b3b117cf7de7de6451
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
This commit is contained in:
Dmitriy Rabotyagov
2025-07-17 12:45:39 +02:00
parent 6c85938bcf
commit 1d080a13a5
2 changed files with 13 additions and 0 deletions

View File

@@ -28,6 +28,9 @@
- name: Importing openstack_hosts_setup playbook
ansible.builtin.import_playbook: openstack.osa.openstack_hosts_setup
- name: Importing post metal configuration playbook
ansible.builtin.import_playbook: "{{ post_metal_configuration_hook | default('openstack.osa.hook_dummy') }}"
- name: Importing containers_deploy playbook
ansible.builtin.import_playbook: openstack.osa.containers_deploy

View File

@@ -0,0 +1,10 @@
---
features:
- |
A variable ``post_metal_configuration_hook`` is introduced, which can
be used to define a hookable playbook which will execute right after
configuration of metal host in perfromed inside of ``openstack_hosts``
role.
This might be a handy for downstream customizations to happen, as
networkd, mounts, services and kernel modules are already configured
at this point, but LXC containers are not yet created.