blob: 28e3ee978ba15627c6d61d4170c395912ded8a13 (
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
|
class sudo {
package { sudo:
ensure => installed;
}
file { "/etc/sudoers.d":
ensure => directory,
mode => 711,
owner => root,
group => root,
}
file { "/etc/sudoers":
ensure => present,
owner => root,
group => root,
mode => 440,
content => template("sudo/sudoers")
}
define sudoers_config($content) {
file { "/etc/sudoers.d/$name":
owner => root,
group => root,
mode => 440,
content => $content,
}
}
}
|