Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

15850 - add required mco version to metadata

Show the required version in the help output.  Also include the
metadata erb in redhat packaging that was left out before
  • Loading branch information...
commit ade8c457f9bc318a4f3a1f2ae0fe35651f05051e 1 parent 9196a3a
@ripienaar ripienaar authored
View
4 etc/metadata-help.erb
@@ -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 != "" %>
View
1  ext/redhat/mcollective.spec
@@ -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
View
9 website/reference/plugins/ddl.md
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.