update to 0.25.x style

This commit is contained in:
mh 2009-11-14 16:02:48 +01:00
parent 4e5141239c
commit d7ed7c2565
3 changed files with 22 additions and 24 deletions

11
manifests/base.pp Normal file
View 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;
}
}
}

View file

@ -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
View 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'],
}
}
}