forked from hunner/puppetlabs-sudo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added file that tests three distinct sudoers types
- Loading branch information
Dan Bode
committed
Apr 6, 2010
1 parent
550e760
commit 3272916
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# this will work for all resource types of sudoerd | ||
resources{'sudoers': | ||
purge => true, | ||
} | ||
sudo::alias{'BLAH1': | ||
#target => '/tmp/sudo', | ||
sudo_alias => 'Cmnd_Alias', | ||
items => ['/bin/blah', '/bin/blah4', '/bin/blah2'], | ||
# require => sudoers['BHAH2'] | ||
} | ||
sudo::spec{'blah4': | ||
#target => '/tmp/sudoers', | ||
users => 'dan', | ||
hosts => 'localhost', | ||
commands => '/bin/true', | ||
} | ||
sudo::alias{'BLAH3': | ||
sudo_alias => 'Cmnd_Alias', | ||
items => ['/bin/blah', '/bin/blah4', '/bin/blah2'], | ||
before => Sudoers['BHAH2'] | ||
} | ||
sudo::alias{'BHAH2': | ||
#target => '/tmp/sudoers', | ||
sudo_alias => 'Host_Alias', | ||
items => ['blah2', 'blah3', 'blah4', 'blah5'], | ||
# require => Sudoers['blah4'], | ||
} | ||
sudo::defaults{'Defaults@host': | ||
parameters => ['x=y', 'one=1', 'two=2'], | ||
} |