dev/provisioning/modules/puppi/files/mcollective/puppi.ddl
changeset 28 b0b56e0f8c7f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev/provisioning/modules/puppi/files/mcollective/puppi.ddl	Fri Jan 15 15:35:00 2016 +0100
@@ -0,0 +1,68 @@
+metadata    :name        => "SimpleRPC Agent For PUPPI Commands",
+            :description => "Agent to query PUPPI commands via MCollective", 
+            :author      => "Al @ Lab42",
+            :license     => "Apache License 2.0",
+            :version     => "0.3",
+            :url         => "http://www.example42.com/",
+            :timeout     => 600
+
+[ "check" , "log" , "info" ].each do |myact| 
+    action myact, :description => "Run puppi myact" do
+        display :always
+
+        input :project,
+              :prompt      => "Project",
+              :description => "PUPPI project",
+              :type        => :string,
+              :validation  => '^[a-zA-Z\-\.=_\d]+$',
+              :optional    => true,
+              :maxlength   => 50
+
+        input :puppioptions,
+              :prompt      => "Puppi options",
+              :description => "PUPPI options",
+              :type        => :string,
+              :validation  => '^[a-zA-Z\-\.=_\d]+$',
+              :optional    => true,
+              :maxlength   => 50
+
+        output :data,
+              :description => "Output from the Puppi run",
+              :display_as  => "Output"
+
+        output :exitcode,
+              :description  => "Exit Code from the Puppi run",
+              :display_as => "Exit Code"
+    end
+end
+
+[ "deploy" , "rollback" , "init" , "configure" ].each do |myact|
+    action myact, :description => "Run puppi myact" do
+        display :always
+
+        input :project,
+              :prompt      => "Project",
+              :description => "PUPPI project",
+              :type        => :string,
+              :validation  => '^[a-zA-Z\-\.=_\d]+$',
+              :optional    => false,
+              :maxlength   => 50
+
+        input :puppioptions,
+              :prompt      => "Puppi options",
+              :description => "PUPPI options",
+              :type        => :string,
+              :validation  => '^[a-zA-Z\-\.=_\d]+$',
+              :optional    => true,
+              :maxlength   => 50
+
+        output :data,
+              :description => "Output from the Puppi run",
+              :display_as  => "Output"
+
+        output :exitcode,
+              :description  => "Exit Code from the Puppi run",
+              :display_as => "Exit Code"
+    end
+end
+