2013-04-24 20:01:34 +02:00
|
|
|
class sudo {
|
2013-04-26 00:58:04 +02:00
|
|
|
package { 'sudo': ensure => installed, }
|
2013-04-22 22:00:28 +02:00
|
|
|
|
2013-04-26 00:58:04 +02:00
|
|
|
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' ],
|
2013-04-22 22:00:28 +02:00
|
|
|
}
|
2013-04-26 00:58:04 +02:00
|
|
|
}
|
2013-04-22 22:00:28 +02:00
|
|
|
}
|