fuel-main/orchestrator/mcollective/agent/nailyfact.ddl

40 lines
1.0 KiB
SQL

metadata :name => "Naily Fact Agent",
:description => "Key/values in a text file",
:author => "Puppet Master Guy",
:license => "GPL",
:version => "Version 1",
:url => "www.naily.com",
:timeout => 10
action "get", :description => "fetches a value from a file" do
display :failed
input :key,
:prompt => "Key",
:description => "Key you want from the file",
:type => :string,
:validation => '^[a-zA-Z0-9_]+$',
:optional => false,
:maxlength => 90
output :value,
:description => "Value",
:display_as => "Value"
end
action "post", :description => "Create new attributes file" do
display :failed
input :value,
:prompt => "Value",
:description => "Value you want to set in the file",
:type => :string,
:validation => '.*',
:optional => false,
:maxlength => 90
output :msg,
:description => "Status",
:display_as => "Status"
end