summaryrefslogtreecommitdiff
path: root/tests/sudoers-defined.pp
diff options
context:
space:
mode:
authorDan Bode <dan@bodepd.com>2010-06-02 11:46:22 -0500
committerDan Bode <dan@bodepd.com>2010-06-02 11:46:22 -0500
commit7ba8f5c287476cbd3e3fc51db2eebabda27380c7 (patch)
tree057922f11fc4399888ccce3ddc497fe76226d817 /tests/sudoers-defined.pp
parent2f983bc4253bf5ca7ee641c8db9e8ccd96c0401d (diff)
rest of the tests that I moved.
Diffstat (limited to 'tests/sudoers-defined.pp')
-rw-r--r--tests/sudoers-defined.pp19
1 files changed, 9 insertions, 10 deletions
diff --git a/tests/sudoers-defined.pp b/tests/sudoers-defined.pp
index fa35b80..f3b698e 100644
--- a/tests/sudoers-defined.pp
+++ b/tests/sudoers-defined.pp
@@ -1,31 +1,30 @@
-resources{'sudoers':
+resources { 'sudoers':
purge => true,
}
-sudo::alias{'BLAH1':
+sudo::alias { 'BLAH1':
#target => '/tmp/sudoers',
- ensure => absent,
+ ensure => present,
sudo_alias => 'Cmnd_Alias',
items => ['/bin/blah', '/bin/blah4', '/bin/blah2'],
- require => Sudoers['BHAH2']
}
-sudo::spec{'blah4':
+sudo::spec { 'blah4':
#target => '/tmp/sudoers',
users => 'dan',
hosts => 'localhost',
commands => '/bin/true',
}
-sudo::alias{'BLAH3':
+sudo::alias { 'BLAH3':
sudo_alias => 'Cmnd_Alias',
items => ['/bin/blah', '/bin/blah4', '/bin/blah2'],
before => Sudoers['BHAH2']
}
-sudo::alias{'BHAH2':
+sudo::alias { 'BHAH2':
#target => '/tmp/sudoers',
- ensure => absent,
+ ensure => present,
sudo_alias => 'Host_Alias',
items => ['blah2', 'blah3', 'blah4', 'blah5'],
- require => Sudoers['blah4'],
+ require => Sudo::spec['blah4'],
}
-sudo::defaults{'Defaults@host':
+sudo::defaults { 'Defaults@host':
parameters => ['x=y', 'one=1', 'two=2'],
}