summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2016-02-10 09:21:11 -0500
committerDan Prince <dprince@redhat.com>2016-02-10 09:21:11 -0500
commitc569b1928bd5241be677e8c168f56e04c49abd73 (patch)
treef0b3818c142814d01fb0c7fbf388312dcf23cf53
parent93c392fa204c3e9f528fe78c1bdeb74806e0d18e (diff)
Install mongodb client package
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
-rw-r--r--puppet/manifests/overcloud_controller.pp2
-rw-r--r--puppet/manifests/overcloud_controller_pacemaker.pp1
2 files changed, 2 insertions, 1 deletions
diff --git a/puppet/manifests/overcloud_controller.pp b/puppet/manifests/overcloud_controller.pp
index a89cbd9e..38676b9d 100644
--- a/puppet/manifests/overcloud_controller.pp
+++ b/puppet/manifests/overcloud_controller.pp
@@ -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, ',')
diff --git a/puppet/manifests/overcloud_controller_pacemaker.pp b/puppet/manifests/overcloud_controller_pacemaker.pp
index 52e7c592..7d5612fe 100644
--- a/puppet/manifests/overcloud_controller_pacemaker.pp
+++ b/puppet/manifests/overcloud_controller_pacemaker.pp
@@ -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,
}