telemetry: exec[check_mongodb] has a soft dependency on service[mongodb]

The mongodb service may not be declared on the same node where the
services are running, this change adds a soft dependency on the mongodb
service. (meaning, there'll be a dependency only if the mongodb service
is running on the same node)

Fixes Bug#242
This commit is contained in:
François Charlier
2014-02-13 15:19:04 +01:00
parent d3856e98a2
commit 4d4527a0e8

View File

@@ -33,8 +33,8 @@ class cloud::telemetry::server(
logoutput => false, logoutput => false,
tries => 60, tries => 60,
try_sleep => 5, try_sleep => 5,
require => Service['mongodb'],
} }
Service <| title == 'mongodb' |> -> Exec['check_mongodb']
# Install MongoDB database # Install MongoDB database
class { 'ceilometer::db': class { 'ceilometer::db':