diff --git a/docker/cinder/cinder-api/Dockerfile.j2 b/docker/cinder/cinder-api/Dockerfile.j2 index cbedd9fd47..85f18eb3c2 100644 --- a/docker/cinder/cinder-api/Dockerfile.j2 +++ b/docker/cinder/cinder-api/Dockerfile.j2 @@ -7,45 +7,32 @@ MAINTAINER {{ maintainer }} {% if install_type == 'binary' %} {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %} - {% set cinder_api_packages = [ 'python-keystone', 'httpd', 'mod_wsgi' ] %} - - {% elif base_distro in ['ubuntu'] %} - {% set cinder_api_packages = [ 'cinder-api', 'apache2', 'libapache2-mod-wsgi' ] %} - {% endif %} - {{ macros.install_packages(cinder_api_packages | customizable("packages")) }} {% elif install_type == 'source' %} - {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %} - {% set cinder_api_packages = [ 'httpd', 'mod_wsgi' ] %} - - {% elif base_distro in ['ubuntu'] %} - {% set cinder_api_packages = [ 'apache2', 'libapache2-mod-wsgi' ] %} - {% endif %} - {{ macros.install_packages(cinder_api_packages | customizable("packages")) }} {% endif %} diff --git a/docker/cinder/cinder-backup/Dockerfile.j2 b/docker/cinder/cinder-backup/Dockerfile.j2 index 02a30c4933..28f85dbc2e 100644 --- a/docker/cinder/cinder-backup/Dockerfile.j2 +++ b/docker/cinder/cinder-backup/Dockerfile.j2 @@ -7,33 +7,25 @@ MAINTAINER {{ maintainer }} {% if install_type == 'binary' %} {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %} - {% set cinder_backup_packages = [ 'nfs-utils' ] %} - {% elif base_distro in ['ubuntu'] %} - {% set cinder_backup_packages = [ 'nfs-common', 'cinder-backup' ] %} - {% endif %} {% elif install_type == 'source' %} {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %} - {% set cinder_backup_packages = [ 'nfs-utils' ] %} - {% elif base_distro in ['ubuntu', 'debian'] %} - {% set cinder_backup_packages = [ 'nfs-common' ] %} - {% endif %} {% endif %} diff --git a/docker/cinder/cinder-base/Dockerfile.j2 b/docker/cinder/cinder-base/Dockerfile.j2 index b50d0f9783..5f08bb0525 100644 --- a/docker/cinder/cinder-base/Dockerfile.j2 +++ b/docker/cinder/cinder-base/Dockerfile.j2 @@ -9,45 +9,35 @@ MAINTAINER {{ maintainer }} {% if install_type == 'binary' %} {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %} - {% set cinder_base_packages = [ 'openstack-cinder', 'python-automaton', 'lvm2', 'ceph-common' ] %} - {% elif base_distro in ['ubuntu'] %} - {% set cinder_base_packages = [ 'cinder-common', 'ceph-common', 'lvm2' ] %} - {% endif %} - {{ macros.install_packages(cinder_base_packages | customizable("packages")) }} {% elif install_type == 'source' %} {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %} - {% set cinder_base_packages = [ 'lvm2', 'qemu-img', 'ceph-common' ] %} - {% elif base_distro in ['ubuntu', 'debian'] %} - {% set cinder_base_packages = [ 'lvm2', 'qemu-utils', 'ceph-common' ] %} - {% endif %} - {{ macros.install_packages(cinder_base_packages | customizable("packages")) }} ADD cinder-base-archive /cinder-base-source diff --git a/docker/cinder/cinder-scheduler/Dockerfile.j2 b/docker/cinder/cinder-scheduler/Dockerfile.j2 index b19cb83594..ad4353a54b 100644 --- a/docker/cinder/cinder-scheduler/Dockerfile.j2 +++ b/docker/cinder/cinder-scheduler/Dockerfile.j2 @@ -7,7 +7,6 @@ MAINTAINER {{ maintainer }} {% if install_type == 'binary' %} {% if base_distro in ['ubuntu'] %} - {% set cinder_scheduler_packages = [ 'cinder-scheduler' ] %} diff --git a/docker/cinder/cinder-volume/Dockerfile.j2 b/docker/cinder/cinder-volume/Dockerfile.j2 index ef90fcd91a..060555288e 100644 --- a/docker/cinder/cinder-volume/Dockerfile.j2 +++ b/docker/cinder/cinder-volume/Dockerfile.j2 @@ -6,12 +6,10 @@ MAINTAINER {{ maintainer }} {% import "macros.j2" as macros with context %} {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %} - {% set cinder_volume_packages = [ 'nfs-utils', 'scsi-target-utils' ] %} - {{ macros.install_packages(cinder_volume_packages | customizable("packages")) }} {% block cinder_volume_redhat_setup %} @@ -19,11 +17,9 @@ RUN sed -i '1 i include /var/lib/cinder/volumes/*' /etc/tgt/tgtd.conf {% endblock %} {% elif base_distro in ['ubuntu', 'debian'] %} - {% set cinder_volume_packages = [ 'tgt' ] %} - {{ macros.install_packages(cinder_volume_packages | customizable("packages")) }} {% block cinder_volume_ubuntu_setup %} @@ -34,12 +30,10 @@ RUN sed -i '1 i include /var/lib/cinder/volumes/*' /etc/tgt/targets.conf {% if install_type == 'binary' %} {% if base_distro in ['ubuntu', 'debian'] %} - {% set cinder_volume_packages = [ 'cinder-volume', 'nfs-common' ] %} - {{ macros.install_packages(cinder_volume_packages | customizable("packages")) }} {% endif %} {% endif %}