module-sudo/manifests/init.pp

16 lines
494 B
ObjectPascal
Raw Normal View History

2013-04-24 20:01:34 +02:00
class sudo {
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" ],
}
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" ],
}
}
}