summaryrefslogtreecommitdiff
path: root/devstack
diff options
context:
space:
mode:
authorSumit Jamgade <sjamgade@suse.com>2017-12-19 11:05:42 +0100
committerSumit Jamgade <sjamgade@suse.com>2017-12-19 11:05:42 +0100
commitb0edc485ea37cc601f2a6c3b8a7b6e93132577c7 (patch)
tree856137e82b5503ea1a2379b005daa0ed9926e2e4 /devstack
parent2f64adaa0ce539e4747d6065f6c02ae8bf195e1e (diff)
downloadceilometer-b0edc485ea37cc601f2a6c3b8a7b6e93132577c7.tar.gz
devstack: redis on opensuse needs to have default config
this patch adds a default config and uses template version of unit-file to restart redis Change-Id: I3c3498f408ac832c50d8f0e1834247492570fd4c
Diffstat (limited to 'devstack')
-rw-r--r--devstack/plugin.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/devstack/plugin.sh b/devstack/plugin.sh
index 608ce2f3..7036addd 100644
--- a/devstack/plugin.sh
+++ b/devstack/plugin.sh
@@ -96,7 +96,14 @@ function _ceilometer_install_redis {
else
# This will fail (correctly) where a redis package is unavailable
install_package redis
- restart_service redis
+ if is_suse; then
+ # opensuse intsall multi-instance version of redis
+ # and admin is expected to install the required conf
+ cp /etc/redis/default.conf.example /etc/redis/default.conf
+ restart_service redis@default
+ else
+ restart_service redis
+ fi
fi
pip_install_gr redis