summaryrefslogtreecommitdiff
path: root/tests/sudoers-distinct.pp
blob: fcfed9f95417838f366f80f0dac4c8e2102f9f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 => Sudo::alias['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 => Sudo::alias['BHAH2']
}
sudo::alias{'BHAH2':
  #target => '/tmp/sudoers',
  sudo_alias => 'Host_Alias',
  items => ['blah2', 'blah3', 'blah4', 'blah5'],
  require => Sudo::spec['blah4'],
}
sudo::defaults{'Defaults@host':
  parameters => ['x=y', 'one=1', 'two=2'],
}