Add an option 'ZEROMQ_MATCHMAKER' to indicate which
matchmaker driver to use.
When it indicates 'redis', the dependencies will be
installed.
Change-Id: I910b48347bad0685ea10083a3b0b243524f32095
Partially-Implements: blueprint zeromq
| ... | ... |
@@ -87,11 +87,20 @@ function cleanup_rpc_backend {
|
| 87 | 87 |
fi |
| 88 | 88 |
elif is_service_enabled zeromq; then |
| 89 | 89 |
if is_fedora; then |
| 90 |
- uninstall_package zeromq python-zmq redis |
|
| 90 |
+ uninstall_package zeromq python-zmq |
|
| 91 |
+ if [ "$ZEROMQ_MATCHMAKER" == "redis" ]; then |
|
| 92 |
+ uninstall_package redis python-redis |
|
| 93 |
+ fi |
|
| 91 | 94 |
elif is_ubuntu; then |
| 92 |
- uninstall_package libzmq1 python-zmq redis-server |
|
| 95 |
+ uninstall_package libzmq1 python-zmq |
|
| 96 |
+ if [ "$ZEROMQ_MATCHMAKER" == "redis" ]; then |
|
| 97 |
+ uninstall_package redis-server python-redis |
|
| 98 |
+ fi |
|
| 93 | 99 |
elif is_suse; then |
| 94 |
- uninstall_package libzmq1 python-pyzmq redis |
|
| 100 |
+ uninstall_package libzmq1 python-pyzmq |
|
| 101 |
+ if [ "$ZEROMQ_MATCHMAKER" == "redis" ]; then |
|
| 102 |
+ uninstall_package redis python-redis |
|
| 103 |
+ fi |
|
| 95 | 104 |
else |
| 96 | 105 |
exit_distro_not_supported "zeromq installation" |
| 97 | 106 |
fi |
| ... | ... |
@@ -150,11 +159,20 @@ function install_rpc_backend {
|
| 150 | 150 |
# but there is a matchmaker driver that works |
| 151 | 151 |
# really well & out of the box for multi-node. |
| 152 | 152 |
if is_fedora; then |
| 153 |
- install_package zeromq python-zmq redis |
|
| 153 |
+ install_package zeromq python-zmq |
|
| 154 |
+ if [ "$ZEROMQ_MATCHMAKER" == "redis" ]; then |
|
| 155 |
+ install_package redis python-redis |
|
| 156 |
+ fi |
|
| 154 | 157 |
elif is_ubuntu; then |
| 155 |
- install_package libzmq1 python-zmq redis-server |
|
| 158 |
+ install_package libzmq1 python-zmq |
|
| 159 |
+ if [ "$ZEROMQ_MATCHMAKER" == "redis" ]; then |
|
| 160 |
+ install_package redis-server python-redis |
|
| 161 |
+ fi |
|
| 156 | 162 |
elif is_suse; then |
| 157 |
- install_package libzmq1 python-pyzmq redis |
|
| 163 |
+ install_package libzmq1 python-pyzmq |
|
| 164 |
+ if [ "$ZEROMQ_MATCHMAKER" == "redis" ]; then |
|
| 165 |
+ install_package redis python-redis |
|
| 166 |
+ fi |
|
| 158 | 167 |
else |
| 159 | 168 |
exit_distro_not_supported "zeromq installation" |
| 160 | 169 |
fi |