Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. # The topics from your activemq, /topic/mcollective_dev/...
  2. $mcollective_prefix = "mcollective";
  3.  
  4. # Path to your SSL private key and what it's called so the
  5. # mcollectived will load yours
  6. $ssl_private_key = "/etc/mcollective/ssl/john-private.pem";
  7. $ssl_private_key_name = "john";
  8.  
  9. # A string representing your sending host
  10. $mcollective_client_identity = "SERVER_FQDN";
  11.  
  12. # Stomp connection parameters
  13. $stomp_host = "SERVER_FQDN";
  14. $stomp_port = 61613;
  15. $stomp_user = "mcollective";
  16. $stomp_password = "PASSWORD";
  17.  
  18. $YAML::Syck::ImplicitTyping = 1;
  19.  
  20. $request{":msgtime"} = time();
  21. $request{":filter"}{"identity"} = [];
  22. $request{":filter"}{"fact"} = [];
  23. $request{":filter"}{"agent"} = [];
  24. $request{":filter"}{"cf_class"} = [];
  25. $request{":requestid"} = md5_hex(time() . $$);
  26. $request{":callerid"} = "cert=${ssl_private_key_name}";
  27. $request{":senderid"} = $mcollective_client_identity;
  28. $request{":body"} = Dump("ping");
  29. $request{":msgtarget"} = "/topic/${mcollective_prefix}.discovery.command";
  30.  
  31. $key = "";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement