From 40d59f2c2250348a708a82fbb3535d94661b1b60 Mon Sep 17 00:00:00 2001
From: Luigi Toscano <ltoscano@redhat.com>
Date: Wed, 22 Aug 2018 15:17:09 +0200
Subject: [PATCH] Bind mount the database client settings in sahara_db_sync

Apparently not doing this break the bootstrap container in some cases
(for example when TLS everywhere is enabled). This case is not really
supported by Sahara right now, but better fix it in advance.

More details about this change are available in the similar patches
that landed for other components:
- Cinder: https://review.openstack.org/539498
- Manila: https://review.openstack.org/594801

Change-Id: Iab8ad50f4397ee9809f50d1474026d5ff8a6972c
---
 docker/services/sahara-api.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docker/services/sahara-api.yaml b/docker/services/sahara-api.yaml
index bbabc79260..126ab3d371 100644
--- a/docker/services/sahara-api.yaml
+++ b/docker/services/sahara-api.yaml
@@ -118,6 +118,7 @@ outputs:
               list_concat:
                 - {get_attr: [ContainersCommon, volumes]}
                 -
+                  - /var/lib/config-data/sahara/etc/my.cnf.d/tripleo.cnf:/etc/my.cnf.d/tripleo.cnf:ro
                   - /var/lib/config-data/sahara/etc/sahara/:/etc/sahara/:ro
                   - /lib/modules:/lib/modules:ro
                   - /var/lib/sahara:/var/lib/sahara