# private class
class mcollective::server::config::rpcauthprovider::action_policy {
  if $caller_module_name != $module_name {
    fail("Use of private class ${name} by ${caller_module_name}")
  }

  mcollective::plugin { 'actionpolicy': }

  mcollective::server::setting { 'rpcauthorization':
    value => 1,
  }

  mcollective::server::setting { 'rpcauthprovider':
    value => 'action_policy',
  }

  mcollective::server::setting { 'plugin.actionpolicy.allow_unconfigured':
    value => $mcollective::allowunconfigured,
  }
}
