summaryrefslogtreecommitdiff
path: root/tests/sudoers/test2.pp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sudoers/test2.pp')
-rw-r--r--tests/sudoers/test2.pp20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/sudoers/test2.pp b/tests/sudoers/test2.pp
new file mode 100644
index 0000000..63c6714
--- /dev/null
+++ b/tests/sudoers/test2.pp
@@ -0,0 +1,20 @@
+sudoers{'NAME':
+ ensure => present,
+ users => ['dan1', 'dan2'],
+ hosts => 'ALL',
+ commands => [
+ '(root) /usr/bin/su - easapp',
+ '(easapp)/usr/local/eas-ts/bin/appctl',
+ ],
+ type => 'user_spec',
+}
+sudoers{'ALIAS_NAME':
+ ensure => present,
+ sudo_alias => 'Cmnd',
+ items => ['/bin/true', '/usr/bin/su - bob'],
+ type => 'alias',
+}
+sudoers{'Defaults@host':
+ parameters => ['x=y', 'one=1', 'two=2'],
+ type => 'default',
+ }