Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
- cloud
- openstack
dependencies:
"openstack.cloud": ">=2.5.0"
"openstack.cloud": ">=2.6.0"
"community.general": ">=8.2.0"
repository: https://github.com/stackhpc/ansible-collection-openstack
documentation: https://github.com/stackhpc/ansible-collection-openstack/blob/main/README.md
Expand Down
3 changes: 3 additions & 0 deletions roles/os_networks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ dict containing the following items:
Boolean, true to enable, false otherwise. Requires ansible >= 2.8.
- `dns_domain`: The DNS domain value to set. Network will use Openstack
defaults if this option is not provided. Requires ansible >= 2.9.
- `tags`: Optional list of tags to set on the network.
- `subnets`: A list of subnets to create in this network. Each item should
be a dict containing the following items:
- `name`: Name of the neutron subnet.
Expand Down Expand Up @@ -79,6 +80,7 @@ dict containing the following items:
- `project`: Optionally create this subnet for a project other than the
authenticating project.
- `state`: Optional state of the subnet, default is `present`.
- `tags`: Optional list of tags to set on the subnet.

`os_networks_routers` is a list of routers to create. Each item should be a
dict containing the following items:
Expand All @@ -93,6 +95,7 @@ dict containing the following items:
- `project`: Optionally create this router for a project other than the
authenticating project.
- `state`: Optional state of the router, default is `present`.
- `tags`: Optional list of tags to set on the router.


`os_networks_security_groups`: List of security groups to create.
Expand Down
3 changes: 3 additions & 0 deletions roles/os_networks/tasks/networks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
mtu: "{{ item.mtu | default(omit) }}"
dns_domain: "{{ item.dns_domain | default(omit) }}"
port_security_enabled: "{{ item.port_security_enabled | default(omit) }}"
tags: "{{ item.tags | default(omit) }}"
with_items: "{{ os_networks }}"

- name: Ensure subnet is registered with neutron
Expand Down Expand Up @@ -65,6 +66,7 @@
default(item.1.subnetpool | default(omit)) }}
project: "{{ item.1.project | default(omit) }}"
state: "{{ item.1.state | default(omit) }}"
tags: "{{ item.1.tags | default(omit) }}"
with_subelements:
- "{{ os_networks }}"
- subnets
Expand All @@ -87,6 +89,7 @@
# external_fixed_ips: "{{ item.external_fixed_ips | default(omit) }}"
# project: "{{ item.project | default(omit) }}"
# state: "{{ item.state | default(omit) }}"
# tags: "{{ item.tags | default(omit) }}"
# loop: "{{ os_networks_routers }}"
# when: item.state | default('present') == 'present'

Expand Down
1 change: 1 addition & 0 deletions roles/os_networks/tasks/router_workaround.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@
external_fixed_ips: "{{ item.external_fixed_ips | default(omit) }}"
project: "{{ item.project | default(omit) }}"
state: "{{ item.state | default(omit) }}"
tags: "{{ item.tags | default(omit) }}"
Loading