From 630e9149c0db95ffbc6b1cd00586be375546c514 Mon Sep 17 00:00:00 2001 From: Redouane BOUFENGHOUR Date: Thu, 22 Feb 2024 13:04:04 +0100 Subject: [PATCH] Openstack: add management of multi public network In the openstack plugins, it is not possible to choose your public network, which is a problem when you are on a private cloud, you end up with the first public network on the list. I encountered this error: Timeout waiting for the floating IP to be attached. --- src/molecule_plugins/openstack/playbooks/create.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/molecule_plugins/openstack/playbooks/create.yml b/src/molecule_plugins/openstack/playbooks/create.yml index d9596952..b8811d44 100644 --- a/src/molecule_plugins/openstack/playbooks/create.yml +++ b/src/molecule_plugins/openstack/playbooks/create.yml @@ -102,6 +102,7 @@ image: "{{ item.image }}" key_name: "{{ key_name }}" flavor: "{{ item.flavor }}" + floating_ip_pools: "{{ item.floating_ip_pools | default(omit) }}" boot_from_volume: "{{ true if item.volume is defined and item.volume.size else false }}" terminate_volume: "{{ true if item.volume is defined and item.volume.size else false }}" volume_size: "{{ item.volume.size if item.volume is defined and item.volume.size else omit }}"