2013-04-24 20:01:34 +02:00
|
|
|
class sudo {
|
2013-04-22 22:00:28 +02:00
|
|
|
package { 'sudo': ensure => installed, }
|
|
|
|
|
|
|
|
file { "/etc/sudoers":
|
|
|
|
mode => 440, owner => root, group => 0,
|
|
|
|
require => Package['sudo'],
|
2013-04-24 22:08:42 +02:00
|
|
|
source => [ "puppet:///secrets/sudoers.$fqdn", "puppet:///secrets/sudoers" ],
|
2013-04-22 22:00:28 +02:00
|
|
|
}
|
|
|
|
if $operatingsystem == 'FreeBSD' {
|
|
|
|
File["/etc/sudoers"] {
|
|
|
|
path => "/usr/local/etc/sudoers",
|
2013-04-24 22:06:13 +02:00
|
|
|
source => [ "puppet:///secrets/sudoers.$fqdn", "puppet:///secrets/sudoers.FreeBSD" ],
|
2013-04-22 22:00:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|