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,44 +11,46 @@ 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
'lsscsi' ,
27
26
'nfs-common' ,
28
27
'nvme-cli' ,
29
28
'sysfsutils' ,
30
- 'python3-rtslib-fb' ,
31
29
'targetcli-fb' ,
32
30
'thin-provisioning-tools' ,
33
31
'tgt'
34
32
] %}
33
+ {% if install_type == 'binary' %}
34
+ {% set cinder_volume_packages = cinder_volume_packages + [
35
+ 'cinder-volume' ,
36
+ 'python3-rtslib-fb'
37
+ ] %}
38
+ {% endif %}
39
+
40
+ {% endif %}
35
41
36
42
{{ macros.install_packages(cinder_volume_packages | customizable("packages")) }}
37
43
38
- {% block cinder_volume_ubuntu_setup %}
39
- RUN sed -i '1 i include /var/lib/cinder/volumes/*' /etc/tgt/targets.conf
40
- {% endblock %}
44
+ {% if base_package_type == 'rpm' %}
41
45
42
- {% endif %}
46
+ {% block cinder_volume_redhat_setup %}
47
+ {% endblock %}
43
48
44
- {% if install_type == 'binary' %}
45
- {% if base_package_type == 'deb' %}
46
- {% set cinder_volume_packages = [
47
- 'cinder-volume' ,
48
- ] %}
49
+ {% elif base_package_type == 'deb' %}
49
50
50
- {{ macros.install_packages(cinder_volume_packages | customizable("packages")) }}
51
- {% endif %}
51
+ {% block cinder_volume_ubuntu_setup %}
52
+ RUN sed -i '1 i include /var/lib/cinder/volumes/*' /etc/tgt/targets.conf
53
+ {% endblock %}
52
54
53
55
{% endif %}
54
56
You can’t perform that action at this time.
0 commit comments