From e290824ce3cda176f9f71429d768369f715671f1 Mon Sep 17 00:00:00 2001
From: Alex Schultz <aschultz@redhat.com>
Date: Wed, 4 Apr 2018 10:36:00 -0600
Subject: [PATCH] Switch Zaqar to use Redis

Zaqar was using mongodb by default but we haven't supported mongodb
since pike.  This change switches Zaqar to use redis by default.

Change-Id: If6ed9fddf4a4fcff3bb9105b04df777ec8a8990e
Closes-Bug: #1761239
---
 docker/services/zaqar.yaml                                   | 2 +-
 environments/services-docker/zaqar.yaml                      | 2 +-
 environments/services/zaqar.yaml                             | 2 +-
 puppet/services/zaqar-api.yaml                               | 4 ++--
 .../notes/zaqar-use-redis-by-default-930f542dda895a31.yaml   | 5 +++++
 5 files changed, 10 insertions(+), 5 deletions(-)
 create mode 100644 releasenotes/notes/zaqar-use-redis-by-default-930f542dda895a31.yaml

diff --git a/docker/services/zaqar.yaml b/docker/services/zaqar.yaml
index 221e259efe..3f9d6b6335 100644
--- a/docker/services/zaqar.yaml
+++ b/docker/services/zaqar.yaml
@@ -13,7 +13,7 @@ parameters:
   ZaqarManagementStore:
     type: string
     description: The management store for Zaqar
-    default: mongodb
+    default: redis
   EndpointMap:
     default: {}
     description: Mapping of service endpoint -> protocol. Typically set
diff --git a/environments/services-docker/zaqar.yaml b/environments/services-docker/zaqar.yaml
index 08033d91b6..13b095db46 100644
--- a/environments/services-docker/zaqar.yaml
+++ b/environments/services-docker/zaqar.yaml
@@ -1,3 +1,3 @@
 resource_registry:
   OS::TripleO::Services::Zaqar: ../../docker/services/zaqar.yaml
-  OS::TripleO::Services::MongoDb: ../../docker/services/database/mongodb.yaml
+  OS::TripleO::Services::Redis : ../../docker/services/database/redis.yaml
diff --git a/environments/services/zaqar.yaml b/environments/services/zaqar.yaml
index 08033d91b6..13b095db46 100644
--- a/environments/services/zaqar.yaml
+++ b/environments/services/zaqar.yaml
@@ -1,3 +1,3 @@
 resource_registry:
   OS::TripleO::Services::Zaqar: ../../docker/services/zaqar.yaml
-  OS::TripleO::Services::MongoDb: ../../docker/services/database/mongodb.yaml
+  OS::TripleO::Services::Redis : ../../docker/services/database/redis.yaml
diff --git a/puppet/services/zaqar-api.yaml b/puppet/services/zaqar-api.yaml
index b379fa2ed7..0429c1edc1 100644
--- a/puppet/services/zaqar-api.yaml
+++ b/puppet/services/zaqar-api.yaml
@@ -61,11 +61,11 @@ parameters:
   ZaqarMessageStore:
     type: string
     description: The messaging store for Zaqar
-    default: mongodb
+    default: redis
   ZaqarManagementStore:
     type: string
     description: The management store for Zaqar
-    default: mongodb
+    default: redis
   EnableInternalTLS:
     type: boolean
     default: false
diff --git a/releasenotes/notes/zaqar-use-redis-by-default-930f542dda895a31.yaml b/releasenotes/notes/zaqar-use-redis-by-default-930f542dda895a31.yaml
new file mode 100644
index 0000000000..72291baba8
--- /dev/null
+++ b/releasenotes/notes/zaqar-use-redis-by-default-930f542dda895a31.yaml
@@ -0,0 +1,5 @@
+---
+upgrade:
+  - |
+    Zaqar has been switched to use the redis backend by default from the
+    mongodb backend. Mongodb has not been supported by TripleO since Pike.