summaryrefslogtreecommitdiff
path: root/manifests/spec.pp
blob: 78e2d5ea7023f60226ce4b111ff941adbc8c4c8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Defined resoruce to manage sudoers user specification lines.
# 
#  attributes:
#   * name - arbitrary string used to determine uniquemenss
#   * users - list of users
#   * hosts - list of hosts
#   * commands - list of commands
define sudo::spec( 
  $ensure=present, 
  $users, $hosts, $commands, 
  $comment='',
  $target='/etc/sudoers'
) {
  sudoers { $name:
    type => 'user_spec',
    ensure => $ensure,
    users => $users,
    hosts => $hosts,
    commands => $commands,
    comment => $comment,
    target => $target,
  }
}