Merge remote-tracking branch 'riseup/lint'
This commit is contained in:
commit
cbdf224424
1 changed files with 13 additions and 7 deletions
|
@ -7,24 +7,30 @@ class sudo(
|
|||
$path = $sudo::params::path,
|
||||
$dir = $sudo::params::dir
|
||||
) inherits sudo::params {
|
||||
|
||||
package {'sudo':
|
||||
ensure => installed,
|
||||
}
|
||||
|
||||
if $sudo::deploy_sudoers {
|
||||
file {
|
||||
$sudo::path:
|
||||
source => [ "puppet:///modules/site_sudo/sudoers/${::fqdn}/sudoers",
|
||||
"puppet:///modules/site_sudo/sudoers/sudoers",
|
||||
"puppet:///modules/sudo/sudoers/${::operatingsystem}/sudoers",
|
||||
"puppet:///modules/sudo/sudoers/sudoers" ],
|
||||
source => [ "puppet:///modules/site_sudo/sudoers/${::fqdn}/sudoers",
|
||||
'puppet:///modules/site_sudo/sudoers/sudoers',
|
||||
"puppet:///modules/sudo/sudoers/${::operatingsystem}/sudoers",
|
||||
'puppet:///modules/sudo/sudoers/sudoers' ],
|
||||
require => Package['sudo'],
|
||||
owner => root, group => 0, mode => 0440;
|
||||
owner => root,
|
||||
group => 0,
|
||||
mode => '0440';
|
||||
}
|
||||
}
|
||||
file {
|
||||
$sudo::dir:
|
||||
ensure => directory,
|
||||
ensure => directory,
|
||||
require => Package['sudo'],
|
||||
owner => root, group => 0, mode => 0550;
|
||||
owner => root,
|
||||
group => 0,
|
||||
mode => '0550';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue