diff options
Diffstat (limited to 'manifests/spec.pp')
-rw-r--r-- | manifests/spec.pp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/spec.pp b/manifests/spec.pp new file mode 100644 index 0000000..1a75afd --- /dev/null +++ b/manifests/spec.pp @@ -0,0 +1,21 @@ +# Defined resoruce to manage sudoers user specification lines. +# +# attributes: +# * name - arbitrary string used to determine uniquemenss +# * users - list of users +# * hosts - list of hosts +# * commands - list of commands +define sudo::spec( + $ensure=present, + $users, $hosts, $commands, + $target='/etc/sudoers' +) { + sudoers { $name: + type => 'user_spec', + ensure => $ensure, + users => $users, + hosts => $hosts, + commands => $commands, + target => $target, + } +} |