update to 0.25.x style
This commit is contained in:
parent
4e5141239c
commit
d7ed7c2565
3 changed files with 22 additions and 24 deletions
11
manifests/base.pp
Normal file
11
manifests/base.pp
Normal file
|
@ -0,0 +1,11 @@
|
|||
class sudo::base {
|
||||
if $sudo_deploy_sudoers {
|
||||
file{'/etc/sudoers':
|
||||
source => [ "puppet://$server/modules/site-sudo/sudoers/${fqdn}/sudoers",
|
||||
"puppet://$server/modules/site-sudo/sudoers/sudoers",
|
||||
"puppet://$server/modules/sudo/sudoers/${operatingsystem}/sudoers",
|
||||
"puppet://$server/modules/sudo/sudoers/sudoers" ],
|
||||
owner => root, group => 0, mode => 0440;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -8,27 +8,3 @@ class sudo {
|
|||
default: { include sudo::base }
|
||||
}
|
||||
}
|
||||
|
||||
class sudo::base {
|
||||
if $sudo_deploy_sudoers {
|
||||
file{'/etc/sudoers':
|
||||
source => [ "puppet://$server/files/sudo/sudoers/${fqdn}/sudoers",
|
||||
"puppet://$server/files/sudo/sudoers/sudoers",
|
||||
"puppet://$server/modules/sudo/sudoers/${operatingsystem}/sudoers",
|
||||
"puppet://$server/modules/sudo/sudoers/sudoers" ],
|
||||
owner => root, group => 0, mode => 0440;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class sudo::linux inherits sudo::base {
|
||||
package{'sudo':
|
||||
ensure => installed,
|
||||
}
|
||||
|
||||
if $sudo_deploy_sudoers {
|
||||
File['/etc/sudoers']{
|
||||
require => Package['sudo'],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
11
manifests/linux.pp
Normal file
11
manifests/linux.pp
Normal file
|
@ -0,0 +1,11 @@
|
|||
class sudo::linux inherits sudo::base {
|
||||
package{'sudo':
|
||||
ensure => installed,
|
||||
}
|
||||
|
||||
if $sudo_deploy_sudoers {
|
||||
File['/etc/sudoers']{
|
||||
require => Package['sudo'],
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue