Fix metadata_settings in containerized mongodb

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
This commit is contained in:
Damien Ciabrini 2017-08-09 07:25:42 +00:00 committed by Juan Antonio Osorio Robles
parent 4dabd2c487
commit 630ce41fe3
1 changed files with 2 additions and 0 deletions

View 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