Skip to content

Commit 3559722

Browse files
committed
Adds variables for setting OpenStack region to all resources
1 parent da4ce36 commit 3559722

File tree

19 files changed

+46
-0
lines changed

19 files changed

+46
-0
lines changed

roles/os_container_clusters/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ virtualenv.
2121
`os_container_clusters_auth` is a dict containing authentication information
2222
compatible with the `auth` argument of `openstack.cloud` Ansible modules.
2323

24+
`os_container_clusters_region_name` is an optional name of an OpenStack region.
25+
2426
`os_container_clusters_cacert` is an optional path to a CA certificate bundle.
2527

2628
`os_container_clusters_templates` is a list of Magnum container cluster

roles/os_container_clusters/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
ansible_python_interpreter: "{{ os_container_clusters_venv ~ '/bin/python' if os_container_clusters_venv != None else old_ansible_python_interpreter }}"
1616
openstack.cloud.coe_cluster_template:
1717
auth: "{{ os_container_clusters_auth }}"
18+
region_name: "{{ os_container_clusters_region_name | default(omit) }}"
1819
auth_type: "{{ os_container_clusters_auth_type }}"
1920
cacert: "{{ os_container_clusters_cacert | default(omit) }}"
2021
interface: "{{ os_container_clusters_interface | default(omit, true) }}"

roles/os_deploy_templates/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ the `auth_type` argument of `openstack.cloud` Ansible modules.
2727
`os_deploy_templates_auth` is a dict containing authentication information
2828
compatible with the `auth` argument of `openstack.cloud` Ansible modules.
2929

30+
`os_deploy_templates_region_name` is an optional name of an OpenStack region.
31+
3032
`os_deploy_templates_cacert` is an optional path to a CA certificate bundle.
3133

3234
`os_deploy_templates_interface` is the endpoint URL type to fetch from the service

roles/os_deploy_templates/tasks/deploy_templates.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
openstack.cloud.baremetal_deploy_template:
44
auth_type: "{{ os_deploy_templates_auth_type }}"
55
auth: "{{ os_deploy_templates_auth }}"
6+
region_name: "{{ os_deploy_templates_region_name | default(omit) }}"
67
cacert: "{{ os_deploy_templates_cacert | default(omit) }}"
78
interface: "{{ os_deploy_templates_interface | default(omit, true) }}"
89
name: "{{ item.name | default(omit) }}"

roles/os_flavors/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ the `auth_type` argument of `openstack.cloud` Ansible modules.
2121
`os_flavors_auth` is a dict containing authentication information
2222
compatible with the `auth` argument of `openstack.cloud` Ansible modules.
2323

24+
`os_flavors_region_name` is an optional name of an OpenStack region.
25+
2426
`os_flavors_cacert` is an optional path to a CA certificate bundle.
2527

2628
`os_flavors_interface` is the endpoint URL type to fetch from the service

roles/os_flavors/tasks/flavors.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
openstack.cloud.compute_flavor:
44
auth_type: "{{ os_flavors_auth_type }}"
55
auth: "{{ os_flavors_auth }}"
6+
region_name: "{{ os_flavors_region_name | default(omit) }}"
67
cacert: "{{ os_flavors_cacert | default(omit) }}"
78
interface: "{{ os_flavors_interface | default(omit, true) }}"
89
name: "{{ item.name }}"
@@ -22,6 +23,7 @@
2223
openstack.cloud.compute_flavor_access:
2324
auth_type: "{{ os_flavors_auth_type }}"
2425
auth: "{{ os_flavors_auth }}"
26+
region_name: "{{ os_flavors_region_name | default(omit) }}"
2527
cacert: "{{ os_flavors_cacert | default(omit) }}"
2628
interface: "{{ os_flavors_interface | default(omit, true) }}"
2729
name: "{{ item.0.name }}"

roles/os_host_aggregates/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ virtualenv.
2121
`os_host_aggregates_auth` is a dict containing authentication information
2222
compatible with the `auth` argument of `openstack.cloud` Ansible modules.
2323

24+
`os_host_aggregates_region_name` is an optional name of an OpenStack region.
25+
2426
`os_host_aggregates_cacert` is an optional path to a CA certificate bundle.
2527

2628
`os_host_aggregates_interface` is the endpoint URL type to fetch from the

roles/os_host_aggregates/tasks/host-aggregates.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
openstack.cloud.host_aggregate:
44
auth_type: "{{ os_host_aggregates_auth_type }}"
55
auth: "{{ os_host_aggregates_auth }}"
6+
region_name: "{{ os_host_aggregates_region_name | default(omit) }}"
67
cacert: "{{ os_host_aggregates_cacert | default(omit) }}"
78
interface: "{{ os_host_aggregates_interface | default(omit, true) }}"
89
name: "{{ item.name }}"

roles/os_images/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ example, a dict of the form:
4646

4747
`os_images_region`: Define a region to upload the images. Default is None.
4848

49+
`os_images_region_name` is an optional name of an OpenStack region.
50+
4951
`os_images_cacert` is an optional path to a CA certificate bundle.
5052

5153
`os_images_interface` is the endpoint URL type to fetch from the service

roles/os_images/tasks/promote.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
openstack.cloud.image_info:
99
auth_type: "{{ os_images_auth_type }}"
1010
auth: "{{ os_images_auth }}"
11+
region_name: "{{ os_images_region_name | default(omit) }}"
1112
cacert: "{{ os_images_cacert | default(omit) }}"
1213
interface: "{{ os_images_interface | default(omit, true) }}"
1314
region_name: "{{ os_images_region | default(omit) }}"

0 commit comments

Comments
 (0)