module-sudo/manifests/init.pp

20 lines
518 B
ObjectPascal
Raw Normal View History

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