File tree Expand file tree Collapse file tree 1 file changed +20
-18
lines changed
docker/cinder/cinder-volume Expand file tree Collapse file tree 1 file changed +20
-18
lines changed Original file line number Diff line number Diff line change @@ -11,42 +11,44 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
11
11
{% set cinder_volume_packages = [
12
12
'nfs-utils' ,
13
13
'nvmetcli' ,
14
- 'python3-rtslib' ,
15
- 'python3-cinderlib' ,
16
14
'sysfsutils' ,
17
15
'targetcli'
18
16
] %}
19
- {{ macros.install_packages(cinder_volume_packages | customizable("packages")) }}
20
-
21
- {% block cinder_volume_redhat_setup %}
22
- {% endblock %}
17
+ {% if install_type == 'binary' %}
18
+ {% set cinder_volume_packages = cinder_volume_packages + [
19
+ 'python3-rtslib'
20
+ ] %}
21
+ {% endif %}
23
22
24
23
{% elif base_package_type == 'deb' %}
25
24
{% set cinder_volume_packages = [
26
25
'nfs-common' ,
27
26
'sysfsutils' ,
28
- 'python3-rtslib-fb' ,
29
27
'targetcli-fb' ,
30
28
'thin-provisioning-tools' ,
31
29
'tgt'
32
30
] %}
31
+ {% if install_type == 'binary' %}
32
+ {% set cinder_volume_packages = cinder_volume_packages + [
33
+ 'cinder-volume' ,
34
+ 'python3-rtslib-fb'
35
+ ] %}
36
+ {% endif %}
37
+
38
+ {% endif %}
33
39
34
40
{{ macros.install_packages(cinder_volume_packages | customizable("packages")) }}
35
41
36
- {% block cinder_volume_ubuntu_setup %}
37
- RUN sed -i '1 i include /var/lib/cinder/volumes/*' /etc/tgt/targets.conf
38
- {% endblock %}
42
+ {% if base_package_type == 'rpm' %}
39
43
40
- {% endif %}
44
+ {% block cinder_volume_redhat_setup %}
45
+ {% endblock %}
41
46
42
- {% if install_type == 'binary' %}
43
- {% if base_package_type == 'deb' %}
44
- {% set cinder_volume_packages = [
45
- 'cinder-volume' ,
46
- ] %}
47
+ {% elif base_package_type == 'deb' %}
47
48
48
- {{ macros.install_packages(cinder_volume_packages | customizable("packages")) }}
49
- {% endif %}
49
+ {% block cinder_volume_ubuntu_setup %}
50
+ RUN sed -i '1 i include /var/lib/cinder/volumes/*' /etc/tgt/targets.conf
51
+ {% endblock %}
50
52
51
53
{% endif %}
52
54
You can’t perform that action at this time.
0 commit comments