From cef3f5b1a6ce5f192e0c9d6612658c71a7ddfbc0 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Sun, 22 Oct 2017 20:31:10 -0700 Subject: [PATCH] Transform mongodb::server::bind_ip in an array Because puppet-mongodb requires it to be an array and not a string. See https://github.com/voxpupuli/puppet-mongodb/commit/23068c10a41b5f696ed9d6077d6c633c71e519fc Co-Authored-By: Juan Antonio Osorio Robles Change-Id: I3c1ea4f350ecaea2efcf53ebf8ac26e4936054f7 Closes-Bug: #1726217 --- puppet/services/database/mongodb.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/puppet/services/database/mongodb.yaml b/puppet/services/database/mongodb.yaml index dcead0f7af..dad1148435 100644 --- a/puppet/services/database/mongodb.yaml +++ b/puppet/services/database/mongodb.yaml @@ -95,7 +95,11 @@ outputs: # internal_api -> IP # internal_api_uri -> [IP] # internal_api_subnet - > IP/CIDR - mongodb::server::bind_ip: {get_param: [ServiceNetMap, MongodbNetwork]} + mongodb_bind_ip: {get_param: [ServiceNetMap, MongodbNetwork]} + # NOTE: This now takes an array, so we need to fetch the IP from hiera, + # else Heat won't substitute the network name for the IP. + mongodb::server::bind_ip: + - "%{hiera('mongodb_bind_ip')}" - if: - internal_tls_enabled