Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #522 from ripienaar/0100
Browse files Browse the repository at this point in the history
(misc) Release 0.10.0
  • Loading branch information
ripienaar committed Jul 20, 2018
2 parents 78270c6 + 7d879d2 commit ac63233
Show file tree
Hide file tree
Showing 14 changed files with 570 additions and 14 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
|Date |Issue |Description |
|----------|------|---------------------------------------------------------------------------------------------------------|
|2018/07/20| |Release 0.10.0 |
|2018/07/11| |Use `basemodulepath` setting when no module path is given when running playbooks |
|2018/07/11|518 |Support CA bundles when doing CA validation |
|2018/06/16|513 |Set a upper boundary of support of Puppet 6 |
|2018/06/08|511 |Greatly improve performence when consuming messages on large networks by reducing logging |
|2018/06/06|504 |Rename `_task_id` to `_choria_task_id` and `_task_caller` to `_choria_task_caller` in task executions |
|2018/06/06|506 |Improve UX consistency wrt Plan vs Playbook |
|2018/06/06|507 |Randomize NATS connections by default |
|2018/05/21| |Release 0.9.0 |
|2018/05/19|498 |Add `_task`, `_task_id` and `_task_caller` to task runtime environments |
|2018/05/16|496 |Update the NATS and Diplomat gems to latest versions |
Expand Down
2 changes: 1 addition & 1 deletion lib/mcollective/agent/bolt_tasks.ddl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ metadata :name => "bolt_tasks",
:description => "Downloads and runs Puppet Tasks",
:author => "R.I.Pienaar <rip@devco.net>",
:license => "Apache-2.0",
:version => "0.9.0",
:version => "0.10.0",
:url => "https://choria.io",
:timeout => 60

Expand Down
2 changes: 1 addition & 1 deletion lib/mcollective/agent/bolt_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Downloads and runs Puppet Tasks",
"author": "R.I.Pienaar <rip@devco.net>",
"license": "Apache-2.0",
"version": "0.8.2",
"version": "0.9.0",
"url": "https://choria.io",
"timeout": 60
},
Expand Down
2 changes: 1 addition & 1 deletion lib/mcollective/agent/choria_util.ddl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ metadata :name => "choria_util",
:description => "Choria Utilities",
:author => "R.I.Pienaar <rip@devco.net>",
:license => "Apache-2.0",
:version => "0.9.0",
:version => "0.10.0",
:url => "https://choria.io",
:timeout => 5

Expand Down
2 changes: 1 addition & 1 deletion lib/mcollective/agent/choria_util.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Choria Utilities",
"author": "R.I.Pienaar <rip@devco.net>",
"license": "Apache-2.0",
"version": "0.8.2",
"version": "0.9.0",
"url": "https://choria.io",
"timeout": 5
},
Expand Down
220 changes: 220 additions & 0 deletions lib/mcollective/agent/rpcutil.ddl
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
metadata :name => "rpcutil",
:description => "General helpful actions that expose stats and internals to SimpleRPC clients",
:author => "R.I.Pienaar <rip@devco.net>",
:license => "Apache License, Version 2.0",
:version => "0.10.0",
:url => "https://docs.puppetlabs.com/mcollective/",
:timeout => 10

action "collective_info", :description => "Info about the main and sub collectives" do
display :always

output :main_collective,
:description => "The main Collective",
:display_as => "Main Collective"

output :collectives,
:description => "All Collectives",
:display_as => "All Collectives"

summarize do
aggregate summary(:collectives)
end
end

action "inventory", :description => "System Inventory" do
display :always

output :agents,
:description => "List of agent names",
:display_as => "Agents"

output :facts,
:description => "List of facts and values",
:display_as => "Facts"

output :classes,
:description => "List of classes on the system",
:display_as => "Classes"

output :version,
:description => "MCollective Version",
:display_as => "Version"

output :main_collective,
:description => "The main Collective",
:display_as => "Main Collective"

output :collectives,
:description => "All Collectives",
:display_as => "All Collectives"

output :data_plugins,
:description => "List of data plugin names",
:display_as => "Data Plugins"
end

action "get_fact", :description => "Retrieve a single fact from the fact store" do
display :always

input :fact,
:prompt => "The name of the fact",
:description => "The fact to retrieve",
:type => :string,
:validation => '^[\w\-\.]+$',
:optional => false,
:maxlength => 40

output :fact,
:description => "The name of the fact being returned",
:display_as => "Fact"

output :value,
:description => "The value of the fact",
:display_as => "Value"

summarize do
aggregate summary(:value)
end
end

action "get_facts", :description => "Retrieve multiple facts from the fact store" do
display :always

input :facts,
:prompt => "Comma-separated list of facts",
:description => "Facts to retrieve",
:type => :string,
:validation => '^\s*[\w\.\-]+(\s*,\s*[\w\.\-]+)*$',
:optional => false,
:maxlength => 200

output :values,
:description => "List of values of the facts",
:display_as => "Values"
end

action "daemon_stats", :description => "Get statistics from the running daemon" do
display :always

output :threads,
:description => "List of threads active in the daemon",
:display_as => "Threads"

output :agents,
:description => "List of agents loaded",
:display_as => "Agents"

output :pid,
:description => "Process ID of the daemon",
:display_as => "PID"

output :times,
:description => "Processor time consumed by the daemon",
:display_as => "Times"

output :validated,
:description => "Messages that passed security validation",
:display_as => "Security Validated"

output :unvalidated,
:description => "Messages that failed security validation",
:display_as => "Failed Security"

output :passed,
:description => "Passed filter checks",
:display_as => "Passed Filter"

output :filtered,
:description => "Didn't pass filter checks",
:display_as => "Failed Filter"

output :starttime,
:description => "Time the server started",
:display_as => "Start Time"

output :total,
:description => "Total messages received",
:display_as => "Total Messages"

output :replies,
:description => "Replies sent back to clients",
:display_as => "Replies"

output :configfile,
:description => "Config file used to start the daemon",
:display_as => "Config File"

output :version,
:description => "MCollective Version",
:display_as => "Version"

output :ttlexpired,
:description => "Messages that did pass TTL checks",
:display_as => "TTL Expired"

summarize do
aggregate summary(:version)
aggregate summary(:agents)
end
end

action "agent_inventory", :description => "Inventory of all agents on the server" do
display :always

output :agents,
:description => "List of agents on the server",
:display_as => "Agents"
end

action "get_config_item", :description => "Get the active value of a specific config property" do
display :always

input :item,
:prompt => "Configuration Item",
:description => "The item to retrieve from the server",
:type => :string,
:validation => '^.+$',
:optional => false,
:maxlength => 50

output :item,
:description => "The config property being retrieved",
:display_as => "Property"

output :value,
:description => "The value that is in use",
:display_as => "Value"

summarize do
aggregate summary(:value)
end
end

action "get_data", :description => "Get data from a data plugin" do
display :always

input :source,
:prompt => "Data Source",
:description => "The data plugin to retrieve information from",
:type => :string,
:validation => '^\w+$',
:optional => false,
:maxlength => 50

input :query,
:prompt => "Query",
:description => "The query argument to supply to the data plugin",
:type => :string,
:validation => '^.+$',
:optional => true,
:maxlength => 200
end

action "ping", :description => "Responds to requests for PING with PONG" do
display :always

output :pong,
:description => "The local timestamp",
:display_as => "Timestamp"
end
Loading

0 comments on commit ac63233

Please sign in to comment.