Updated mcollective.init according to OSCI-658
[packages/precise/mcollective.git] / plugins / mcollective / data / agent_data.ddl
diff --git a/plugins/mcollective/data/agent_data.ddl b/plugins/mcollective/data/agent_data.ddl
new file mode 100644 (file)
index 0000000..12da335
--- /dev/null
@@ -0,0 +1,22 @@
+metadata    :name        => "Agent",
+            :description => "Meta data about installed MColletive Agents",
+            :author      => "R.I.Pienaar <rip@devco.net>",
+            :license     => "ASL 2.0",
+            :version     => "1.0",
+            :url         => "http://marionette-collective.org/",
+            :timeout     => 1
+
+dataquery :description => "Agent Meta Data" do
+    input :query,
+          :prompt => "Agent Name",
+          :description => "Valid agent name",
+          :type => :string,
+          :validation => /^[\w\_]+$/,
+          :maxlength => 20
+
+    [:license, :timeout, :description, :url, :version, :author].each do |item|
+      output item,
+             :description => "Agent #{item}",
+             :display_as => item.to_s.capitalize
+    end
+end