/etc/mcollective/rpc-help.erb is in mcollective-common 2.0.0+dfsg-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | <%= meta[:name] %>
<% meta[:name].size.times do %>=<% end %>
<%= meta[:description] %>
Author: <%= meta[:author] %>
Version: <%= meta[:version] %>
License: <%= meta[:license] %>
Timeout: <%= meta[:timeout] %>
Home Page: <%= meta[:url] %>
ACTIONS:
========
<%= actions.keys.sort.join(", ") %>
% actions.keys.sort.each do |action|
<%= action %> action:
<% (action.size + 8).times do %>-<% end %>
<%= actions[action][:description] %>
INPUT:
% actions[action][:input].keys.sort.each do |input|
<%= input %>:
Description: <%= actions[action][:input][input][:description] %>
Prompt: <%= actions[action][:input][input][:prompt] %>
Type: <%= actions[action][:input][input][:type] %>
% if actions[action][:input][input][:type] == :string
Validation: <%= actions[action][:input][input][:validation] %>
Length: <%= actions[action][:input][input][:maxlength] %>
% elsif actions[action][:input][input][:type] == :list
Valid Values: <%= actions[action][:input][input][:list].join(", ") %>
% end
% end
OUTPUT:
% actions[action][:output].keys.sort.each do |output|
<%= output %>:
Description: <%= actions[action][:output][output][:description] %>
Display As: <%= actions[action][:output][output][:display_as] %>
% end
% end
|