summaryrefslogtreecommitdiff
path: root/tests/sudoers/sudoers-create.pp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sudoers/sudoers-create.pp')
-rw-r--r--tests/sudoers/sudoers-create.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/sudoers/sudoers-create.pp b/tests/sudoers/sudoers-create.pp
new file mode 100644
index 0000000..625333c
--- /dev/null
+++ b/tests/sudoers/sudoers-create.pp
@@ -0,0 +1,22 @@
+sudoers { 'blah1':
+ target => '/tmp/sudoers',
+ ensure => present,
+ sudo_alias => 'Cmnd_Alias',
+ items => ['/usr/bin/which', '/bin/touch'],
+ type => 'alias',
+}
+sudoers { 'blah2':
+ target => '/tmp/sudoers',
+ ensure => present,
+ sudo_alias => 'Host_Alias',
+ items => ['localhost', 'localhost.localdomain'],
+ type => 'alias',
+}
+sudoers { 'blah3':
+ target => '/tmp/sudoers',
+ ensure => present,
+ users => 'dan',
+ hosts => 'localhost',
+ commands => ['/bin/true', '/bin/false'],
+ type => 'user_spec',
+}