From 9c117189727ed602d0d4ffcc1df09b71016d5d1f Mon Sep 17 00:00:00 2001 From: Gareth Rushgrove Date: Sat, 23 Mar 2013 16:53:50 +0000 Subject: [PATCH] Add a notify between server and client when both are running When running the client and the server on the same node, on first run it's possible that the client starts before the server. This appears to cause it not to appear until you manually (or otherwise) kick the client. Adding this notification fixes that problem. For a test case try https://github.com/garethr/sensu-playground. Without this fix the first time the server instance is created the client doesn't register. It's possible it's a bug in the (stripped down) manifests too, if you spot that instead let me know. --- manifests/init.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/init.pp b/manifests/init.pp index 60ab17065c..1ace2d7849 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -49,6 +49,7 @@ if $server == 'true' or $server == true { if $client == 'true' or $client == true { + Class['sensu::service::server'] ~> Class['sensu::service::client'] $notify_services = [ Class['sensu::service::client'], Class['sensu::service::server'] ] } else { $notify_services = Class['sensu::service::server']