Fix metadata_settings in containerized mongodb
authorDamien Ciabrini <dciabrin@redhat.com>
Wed, 9 Aug 2017 07:25:42 +0000 (07:25 +0000)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Mon, 14 Aug 2017 11:39:02 +0000 (11:39 +0000)
The containerized version of the mongodb service omits the
metadata_settings definition [1], which confuses certmonger when
internal TLS is enabled and make the generation of certificates fail.

Use the right setting from the non-containerized profile.

[1] https://review.openstack.org/#/c/461780/

Change-Id: I50a9a3a822ba5ef5d2657a12c359b51b7a3a42f2
Closes-Bug: #1709553

docker/services/database/mongodb.yaml

index 5ba79b3..86bb6d5 100644 (file)
@@ -116,6 +116,8 @@ outputs:
           with_items:
             - /var/log/containers/mongodb
             - /var/lib/mongodb
+      metadata_settings:
+        get_attr: [MongodbPuppetBase, role_data, metadata_settings]
       upgrade_tasks:
         - name: Stop and disable mongodb service
           tags: step2