summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDan Bode <dan@bodepd.com>2010-03-12 11:56:58 -0600
committerDan Bode <dan@bodepd.com>2010-03-12 11:56:58 -0600
commitc19ba550c879a5a29b1f10a5aa5d2a9b1adc020b (patch)
tree0acf8522c66c6bfedd444a4a2a7dbaa4196cd169 /tests
parentd16a9a516f2d5fd3ccd2b348bac470f4c1cbea29 (diff)
before I make massive switches tp namevar for user spec
Diffstat (limited to 'tests')
-rw-r--r--tests/sudoers.pp31
1 files changed, 16 insertions, 15 deletions
diff --git a/tests/sudoers.pp b/tests/sudoers.pp
index 3f40abd..3328125 100644
--- a/tests/sudoers.pp
+++ b/tests/sudoers.pp
@@ -1,21 +1,22 @@
-#sudoers{'blah1':
-# #target => '/tmp/sudoers',
-# ensure => present,
-# sudo_alias => 'Cmnd_Alias',
-# items => ['blah4', 'blah2'],
-# type => 'alias',
-#}
-#sudoers{'blah2':
-# #target => '/tmp/sudoers',
-# ensure => present,
-# sudo_alias => 'Host_Alias',
-# items => ['blah2', 'blah3', 'blah4'],
-# type => 'alias',
-#}
+sudoers{'blah1':
+ #target => '/tmp/sudoers',
+ ensure => present,
+ sudo_alias => 'Cmnd_Alias',
+ items => ['blah4', 'blah2'],
+ type => 'alias',
+}
+sudoers{'blah2':
+ #target => '/tmp/sudoers',
+ ensure => present,
+ sudo_alias => 'Host_Alias',
+ items => ['blah2', 'blah3', 'blah4'],
+ type => 'alias',
+ require => Sudoers['blah3'],
+}
sudoers{'blah3':
#target => '/tmp/sudoers',
ensure => present,
- users => ['dan', 'dan2'],
+ users => ['dan', 'dan2', 'dan3'],
hosts => ['localhost', 'localhost2'],
commands => ['true', 'false'],
type => 'spec',