From c19ba550c879a5a29b1f10a5aa5d2a9b1adc020b Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Fri, 12 Mar 2010 11:56:58 -0600 Subject: before I make massive switches tp namevar for user spec --- tests/sudoers.pp | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'tests/sudoers.pp') 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', -- cgit v1.2.3