summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDan Bode <dan@bodepd.com>2010-03-16 03:40:19 -0500
committerDan Bode <dan@bodepd.com>2010-03-16 03:40:19 -0500
commit522f8dbb66a60a448b4e22027411004b038b7cc3 (patch)
tree55827097f48947f87865b2b8e0ae5e59a1898d2d /tests
parent9c5ff07fc1d45055510798854f4c925e408dda75 (diff)
updated documentation, added more tests
Diffstat (limited to 'tests')
-rw-r--r--tests/test2.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test2.pp b/tests/test2.pp
new file mode 100644
index 0000000..549a3b4
--- /dev/null
+++ b/tests/test2.pp
@@ -0,0 +1,17 @@
+sudoers{'NAME':
+ ensure => present,
+ users => ['dan1', 'dan2'],
+ hosts => 'ALL',
+ commands => [
+ '(root) /usr/bin/su - easapp',
+ '(easapp)/usr/local/eas-ts/bin/appctl',
+ ],
+}
+sudoers{'ALIAS_NAME':
+ ensure => present,
+ sudo_alias => 'Cmnd',
+ items => ['/bin/true', '/usr/bin/su - bob'],
+}
+sudoers{'Defaults@host':
+ parameters => ['x=y', 'one=1', 'two=2'],
+ }