Skip to content

Commit b0f4ebc

Browse files
Merge pull request #1118 from tosky/backend_services-openstackversion-cinder-manila
backend_services: cinder+manila flexible settings
2 parents 7414dee + 0ee3dad commit b0f4ebc

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

tests/roles/backend_services/defaults/main.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,14 @@ dpa_tests_dir: "{{ dpa_dir }}/tests"
2727
director_namespace: "ospdo_openstack"
2828
# adoption repo default location
2929
backend_retry_delay: 5
30+
31+
# list of names of cinder-volume containers as defined in the CRs
32+
backend_services_cindervolumes:
33+
- volume1
34+
# dictionary of name/full URI of cinder-volume container images (3rd-party)
35+
backend_services_cindervolumes_extraimages: {}
36+
# list of names of manila-share containers as defined in the CRs
37+
backend_services_manilashares:
38+
- share1
39+
# dictionary of name/full URI of manila-share container images (3rd-party)
40+
backend_services_manilashares_extraimages: {}

tests/roles/backend_services/templates/openstack_version.j2

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,31 @@ spec:
6969
swiftContainerImage: {{ container_registry }}/{{ container_namespace }}/openstack-swift-container:{{ container_tag }}
7070
swiftObjectImage: {{ container_registry }}/{{ container_namespace }}/openstack-swift-object:{{ container_tag }}
7171
swiftProxyImage: {{ container_registry }}/{{ container_namespace }}/openstack-swift-proxy-server:{{ container_tag }}
72+
{% if (backend_services_cindervolumes | length > 0 or
73+
(backend_services_cindervolumes_extraimages is defined and backend_services_cindervolumes_extraimages is mapping)) %}
7274
cinderVolumeImages:
73-
volume1: {{ container_registry }}/{{ container_namespace }}/openstack-cinder-volume:{{ container_tag }}
75+
{% endif %}
76+
{% if backend_services_cindervolumes | length > 0 %}
77+
{% for _vol in backend_services_cindervolumes %}
78+
{{ _vol }}: {{ container_registry }}/{{ container_namespace }}/openstack-cinder-volume:{{ container_tag }}
79+
{% endfor %}
80+
{% endif %}
81+
{% if (backend_services_cindervolumes_extraimages is defined and backend_services_cindervolumes_extraimages is mapping) %}
82+
{% for _container_name, _container_uri in backend_services_cindervolumes_extraimages.items() %}
83+
{{ _container_name }}: {{ _container_uri }}
84+
{% endfor %}
85+
{% endif %}
86+
{% if (backend_services_manilashares | length > 0 or
87+
(backend_services_manilashares_extraimages is defined and backend_services_manilashares_extraimages is mapping)) %}
7488
manilaShareImages:
75-
share1: {{ container_registry }}/{{ container_namespace }}/openstack-manila-share:{{ container_tag }}
89+
{% endif %}
90+
{% if backend_services_manilashares | length > 0 %}
91+
{% for _vol in backend_services_manilashares %}
92+
{{ _vol }}: {{ container_registry }}/{{ container_namespace }}/openstack-manila-share:{{ container_tag }}
93+
{% endfor %}
94+
{% endif %}
95+
{% if (backend_services_manilashares_extraimages is defined and backend_services_manilashares_extraimages is mapping) %}
96+
{% for _container_name, _container_uri in backend_services_manilashares_extraimages.items() %}
97+
{{ _container_name }}: {{ _container_uri }}
98+
{% endfor %}
99+
{% endif %}

0 commit comments

Comments
 (0)