From 3a184c611d3db13256459d8b690386e4bb900808 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 14 Aug 2024 14:52:12 +0100 Subject: [PATCH 1/2] Support routers without an external gateway Sometimes we may want to create routers that do not have an external gateway. This was possible before the router workaround was applied in 0ed105fad14732adec2879995f16ca13a7bc4826. This change makes it possible to define a router without a 'network' attribute. --- roles/os_networks/tasks/router_workaround.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/os_networks/tasks/router_workaround.yml b/roles/os_networks/tasks/router_workaround.yml index f257ccd..84f1a5a 100644 --- a/roles/os_networks/tasks/router_workaround.yml +++ b/roles/os_networks/tasks/router_workaround.yml @@ -16,6 +16,7 @@ cloud: "{{ os_networks_cloud | default(omit) }}" interface: "{{ os_networks_interface | default(omit, true) }}" register: _networks_query + when: item.network is defined - name: Ensure router is registered with neutron openstack.cloud.router: @@ -26,7 +27,7 @@ interface: "{{ os_networks_interface | default(omit, true) }}" name: "{{ item.name }}" interfaces: "{{ item.interfaces | default(omit) }}" - network: "{{ _networks_query.networks[0].id }}" + network: "{{ _networks_query.networks[0].id if _networks_query is not skipped else omit }}" external_fixed_ips: "{{ item.external_fixed_ips | default(omit) }}" project: "{{ item.project | default(omit) }}" state: "{{ item.state | default(omit) }}" From 37c2d33269ffe94b9d2818befe5ebf8d743143f5 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 14 Aug 2024 14:53:47 +0100 Subject: [PATCH 2/2] Bump version to 0.2.2 --- galaxy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxy.yml b/galaxy.yml index 6d01bfd..e297721 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: stackhpc name: openstack -version: 0.2.1 +version: 0.2.2 readme: README.md authors: - StackHPC Ltd