blob: 1a75afd4ef431f7caeddaa9837234b93cc8bd380 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# 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,
$target='/etc/sudoers'
) {
sudoers { $name:
type => 'user_spec',
ensure => $ensure,
users => $users,
hosts => $hosts,
commands => $commands,
target => $target,
}
}
|