summaryrefslogtreecommitdiff
path: root/tests/sudoers-defined.pp
blob: fa35b803aafcf534588aba5f00e020b200ab2331 (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
31
resources{'sudoers':
  purge => true,
}
sudo::alias{'BLAH1':
  #target => '/tmp/sudoers',
  ensure => absent,
  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',
  ensure => absent,
  sudo_alias => 'Host_Alias',
  items => ['blah2', 'blah3', 'blah4', 'blah5'],
  require => Sudoers['blah4'],
}
sudo::defaults{'Defaults@host':
  parameters => ['x=y', 'one=1', 'two=2'],
}