/usr/share/puppet/modules.available/puppet-community-mcollective/manifests/actionpolicy/rule.pp is in puppet-module-puppet-community-mcollective 0.6.2-2.
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 | # Define - mcollective::actionpolicy::rule
define mcollective::actionpolicy::rule(
$agent,
$action = 'allow',
$callerid = '*',
$actions = '*',
$fact_filter = '*',
$classes = '*'
) {
validate_string($fact_filter)
datacat_fragment { "mcollective::actionpolicy::rule ${title}":
target => "mcollective::actionpolicy ${agent}",
data => {
lines => [
{
'action' => $action,
'callerid' => $callerid,
'actions' => $actions,
'facts' => $fact_filter,
'classes' => $classes,
},
],
},
}
}
|