Skip to content

Commit 9c11718

Browse files
committed
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.
1 parent bba68e4 commit 9c11718

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

manifests/init.pp

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949

5050
if $server == 'true' or $server == true {
5151
if $client == 'true' or $client == true {
52+
Class['sensu::service::server'] ~> Class['sensu::service::client']
5253
$notify_services = [ Class['sensu::service::client'], Class['sensu::service::server'] ]
5354
} else {
5455
$notify_services = Class['sensu::service::server']

0 commit comments

Comments
 (0)