summaryrefslogtreecommitdiff
path: root/manifests/spec.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/spec.pp')
-rw-r--r--manifests/spec.pp21
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,
+ }
+}