forked from choria-io/puppet-choria
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(choria-io#210) add the ping task from mcollective_agent_bolt_tasks
Signed-off-by: R.I.Pienaar <rip@devco.net>
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"description": "A basic echo task to test Choria Tasks functionality", | ||
"input_method": "environment", | ||
"parameters": { | ||
"message": { | ||
"description": "The message to echo back", | ||
"type": "String[1]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/opt/puppetlabs/puppet/bin/ruby | ||
|
||
require "json" | ||
|
||
puts({"message" => ENV["PT_message"], "timestamp" => Time.now}.to_json) |