Validate MongoDB is running before Ceilometer DB config
With a new util, we can validate MongoDB cluster is up and running so let's use it when configuring Ceilometer DB on Collector nodes. It makes sure we don't try to configure Ceilometer DB while MongoDB is not ready. Change-Id: Iad3c4d152e1536427de0741d3ff16bf7dae724a0 Closes-bug: #1451461
This commit is contained in:
@@ -142,7 +142,7 @@ mod 'memcached',
|
||||
:ref => 'd009260de3c7623003318555ec5ca61217ea3ca1'
|
||||
mod 'mongodb',
|
||||
:git => 'git://github.com/enovance/puppetlabs-mongodb.git',
|
||||
:ref => 'cb8db6aafa7c55729adb7b35db02315f784ff2ec'
|
||||
:ref => '030100a176a72a32e265b77790d8d15407a13729'
|
||||
mod 'mysql',
|
||||
:git => 'git://github.com/enovance/puppetlabs-mysql.git',
|
||||
:ref => '8b814d4d2cb5786a15e8e37fb3b7444d5d5f0d3f'
|
||||
|
@@ -43,6 +43,10 @@ class cloud::telemetry::collector(
|
||||
$db_conn = "mongodb://${s_mongo_nodes}/ceilometer"
|
||||
}
|
||||
|
||||
mongodb_conn_validator { $mongo_nodes:
|
||||
before => Class['ceilometer::db']
|
||||
}
|
||||
|
||||
class { 'ceilometer::db':
|
||||
database_connection => $db_conn,
|
||||
sync_db => true,
|
||||
|
Reference in New Issue
Block a user