Install only the required storage driver extras

At the moment, all drivers are being installed for Gnocchi even
if some of them are not used.  This also means that some libraries
are being built which are not needed (such as for Ceph or Swift
when using file storage).

This patch switches the behaviour to install only the extra for
the driver in use.

Change-Id: I6e9f938885036d2fabc81094e01e220b09e462dd
This commit is contained in:
Mohammed Naser 2018-02-09 10:45:31 -05:00 committed by Jesse Pretorius (odyssey4me)
parent 4891d9bdfb
commit 0e5cedca60
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ gnocchi_requires_pip_packages:
gnocchi_pip_packages:
- cryptography
- gnocchiclient
- "gnocchi[mysql,file,swift,ceph]"
- "gnocchi[mysql,{{ gnocchi_storage_driver | default('file') }}]"
- keystonemiddleware
- python-memcached