Install mongodb client package
authorDan Prince <dprince@redhat.com>
Wed, 10 Feb 2016 14:21:11 +0000 (09:21 -0500)
committerDan Prince <dprince@redhat.com>
Wed, 10 Feb 2016 14:21:11 +0000 (09:21 -0500)
This resolves an error which can occur when trying to
create an overcloud without pre-built images. Specifically
mongodb replset creations fails because there is no 'mongo'
binary present:

Error: Could not prefetch mongodb_replset provider 'mongo': Could not
evalute MongoDB shell command: printjson(rs.conf())

Simply including the mongodb::client puppet class should resolve
this issue.

Change-Id: If66d3b900c61be51771f4cd0c9ea06eea62431a4
Closes-bug: #1544072

puppet/manifests/overcloud_controller.pp
puppet/manifests/overcloud_controller_pacemaker.pp

index a89cbd9..38676b9 100644 (file)
@@ -44,7 +44,7 @@ if hiera('step') >= 2 {
   # MongoDB
   if downcase(hiera('ceilometer_backend')) == 'mongodb' {
     include ::mongodb::globals
-
+    include ::mongodb::client
     include ::mongodb::server
     $mongo_node_ips_with_port = suffix(hiera('mongo_node_ips'), ':27017')
     $mongo_node_string = join($mongo_node_ips_with_port, ',')
index 52e7c59..7d5612f 100644 (file)
@@ -109,6 +109,7 @@ if hiera('step') >= 1 {
 
   if downcase(hiera('ceilometer_backend')) == 'mongodb' {
     include ::mongodb::globals
+    include ::mongodb::client
     class { '::mongodb::server' :
       service_manage => false,
     }