/usr/share/mcollective/plugins/mcollective/agent/package.ddl is in mcollective-plugins-package 0.0.0~git20120507.df2fa81-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | metadata :name => "Package Agent",
:description => "Install and uninstall software packages",
:author => "R.I.Pienaar",
:license => "ASL2",
:version => "2.2",
:url => "https://github.com/puppetlabs/mcollective-plugins",
:timeout => 180
["install", "update", "uninstall", "purge"].each do |act|
action act, :description => "#{act.capitalize} a package" do
input :package,
:prompt => "Package Name",
:description => "Package to #{act}",
:type => :string,
:validation => '.',
:optional => false,
:maxlength => 90
output :output,
:description => "Output from the package manager",
:display_as => "Output"
output :properties,
:description => "Properties of the package after #{act.sub(/e$/, '')}ing",
:display_as => "Properties"
end
end
action "status", :description => "Get the status of a package" do
display :always
input :package,
:prompt => "Package Name",
:description => "Package to retrieve the status of",
:type => :string,
:validation => '.',
:optional => false,
:maxlength => 90
output :output,
:description => "Output from the package manager",
:display_as => "Output"
output :properties,
:description => "Package properties",
:display_as => "Properties"
end
action "yum_clean", :description => "Clean the YUM cache" do
input :mode,
:prompt => "Yum clean mode",
:description => "One of the various supported clean modes",
:type => :list,
:optional => true,
:list => ["all", "headers", "packages", "metadata", "dbcache", "plugins", "expire-cache"]
output :output,
:description => "Output from YUM",
:display_as => "Output"
output :exitcode,
:description => "The exitcode from the yum command",
:display_as => "Exit Code"
end
action "apt_update", :description => "Update the apt cache" do
output :output,
:description => "Output from apt-get",
:display_as => "Output"
output :exitcode,
:description => "The exitcode from the apt-get command",
:display_as => "Exit Code"
end
action "yum_checkupdates", :description => "Check for YUM updates" do
display :always
output :output,
:description => "Output from YUM",
:display_as => "Output"
output :oudated_packages,
:description => "Outdated packages",
:display_as => "Outdated Packages"
output :exitcode,
:description => "The exitcode from the yum command",
:display_as => "Exit Code"
end
action "apt_checkupdates", :description => "Check for APT updates" do
display :always
output :output,
:description => "Output from APT",
:display_as => "Output"
output :oudated_packages,
:description => "Outdated packages",
:display_as => "Outdated Packages"
output :exitcode,
:description => "The exitcode from the apt command",
:display_as => "Exit Code"
end
action "checkupdates", :description => "Check for updates" do
display :always
output :package_manager,
:description => "The detected package manager",
:display_as => "Package Manager"
output :output,
:description => "Output from Package Manager",
:display_as => "Output"
output :outdated_packages,
:description => "Outdated packages",
:display_as => "Outdated Packages"
output :exitcode,
:description => "The exitcode from the package manager command",
:display_as => "Exit Code"
end
|