/etc/mcollective/rpc-help.erb is in mcollective-common 2.6.0+dfsg-2.1.
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 | <%= metastring %>
ACTIONS:
========
<%= entities.keys.sort.join(", ") %>
% entities.keys.sort.each do |action|
<%= action %> action:
<% (action.size + 8).times do %>-<% end %>
<%= entities[action][:description] %>
INPUT:
% if entities[action][:input].size > 0
% entities[action][:input].keys.sort.each do |input|
<%= input %>:
Description: <%= entities[action][:input][input][:description] %>
Prompt: <%= entities[action][:input][input][:prompt] %>
Type: <%= entities[action][:input][input][:type] %>
Optional: <%= !!entities[action][:input][input][:optional] %>
% if entities[action][:input][input][:type] == :string
Validation: <%= entities[action][:input][input][:validation] %>
Length: <%= entities[action][:input][input][:maxlength] %>
% elsif entities[action][:input][input][:type] == :list
Valid Values: <%= entities[action][:input][input][:list].join(", ") %>
% end
% if entities[action][:input][input][:default]
Default Value: <%= entities[action][:input][input][:default] %>
% end
% end
% else
This action does not have any inputs
% end
OUTPUT:
% entities[action][:output].keys.sort.each do |output|
<%= output %>:
Description: <%= entities[action][:output][output][:description] %>
Display As: <%= entities[action][:output][output][:display_as] %>
% if entities[action][:output][output][:default]
Default Value: <%= entities[action][:output][output][:default] %>
% end
% end
% end
|