|
ActionPolicy
IntroductionThis requires MCollective 0.4.5 or newer From version 0.4.5 of MCollective SimpleRPC will support authorization plugins. This is a sample plugin that provides fine grained action level authorization for agents. DetailsPolicies are defined in files like <configdir>/policies/<agent>.policy here's a sample for the AgentPuppetd agent: policy default deny allow uid=500 * * * allow uid=600 * customer=acme acme::devserver allow uid=600 enable disable status customer=acme * The above policy can be described as:
Like with actions you can space seperate facts and config classes too. InstallationGet the source from GitHub and place the actionpolicy.rb file in the your libdir/mcollective/util/actionpolicy.rb. You can now activate it in your agents: module MCollective::Agent
class Service<RPC::Agent
authorized_by :action_policy
# ...
end
end
|
► Sign in to add a comment