Skip to content

Commit

Permalink
15850 - add required mco version to metadata
Browse files Browse the repository at this point in the history
Show the required version in the help output.  Also include the
metadata erb in redhat packaging that was left out before
  • Loading branch information
ripienaar committed Aug 22, 2012
1 parent 9196a3a commit ade8c45
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions etc/metadata-help.erb
Expand Up @@ -8,6 +8,10 @@
License: <%= meta[:license] %>
Timeout: <%= meta[:timeout] %>
Home Page: <%= meta[:url] %>
<% if requirement = requirements[:mcollective] -%>

Requires MCollective <%= requirement %> or newer
<% end -%>
<% unless @usage == "" -%>
<%= Util.align_text(@usage, nil, 3) if @usage != "" %>
Expand Down
1 change: 1 addition & 0 deletions ext/redhat/mcollective.spec
Expand Up @@ -67,6 +67,7 @@ rm -rf %{buildroot}
%{__install} -m0444 etc/rpc-help.erb %{buildroot}%{_sysconfdir}/mcollective/rpc-help.erb
%{__install} -m0444 etc/data-help.erb %{buildroot}%{_sysconfdir}/mcollective/data-help.erb
%{__install} -m0444 etc/discovery-help.erb %{buildroot}%{_sysconfdir}/mcollective/discovery-help.erb
%{__install} -m0444 etc/metadata-help.erb %{buildroot}%{_sysconfdir}/mcollective/metadata-help.erb
%if 0%{?suse_version}
%{__install} -m0755 mcollective.init %{buildroot}%{_sysconfdir}/init.d/mcollective
%else
Expand Down
9 changes: 9 additions & 0 deletions website/reference/plugins/ddl.md
Expand Up @@ -51,6 +51,15 @@ metadata :name => "SimpleRPC Service Agent",

It's fairly obvious what these all do, *:timeout* is how long the MCollective daemon will let the threads run.

## Required versions
As of MCollective 2.1.2 you can indicate which is the lowest version of MCollective needed to use a plugin. Plugins that do not meet the requirement can not be used.

{% highlight ruby linenos %}
requires :mcollective => "2.0.0"
{% endhighlight %}

You should add this right after the metadata section in the DDL

## Actions, Input and Output
Defining inputs and outputs is the hardest part, below first the *status* action:

Expand Down

0 comments on commit ade8c45

Please sign in to comment.