summaryrefslogtreecommitdiff
path: root/tests/sudoers.pp
blob: 877a8dac87a30b1b08da52cbc3a284c27fcf3a1b (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
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', 'dan3'],
  hosts => ['localhost', 'localhost2'],
  commands => ['true', 'false', 'dude'],
  type => 'spec',
}
sudoers{'Defaults@host':
  type => 'default',
  parameters => ['x=y', 'one=1', 'two=2'],
}