aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-01-08 20:45:17 +0000
committerMichael Scherer <misc@mageia.org>2012-01-08 20:45:17 +0000
commit0502d934b65539ff158e00a6569c53a9f2117866 (patch)
tree188172bab67e3ad419d0c4fe90996db5c3586cb1 /modules
parent58671186c7d1a1c7953adc98877d464e5a810885 (diff)
downloadpuppet-0502d934b65539ff158e00a6569c53a9f2117866.tar
puppet-0502d934b65539ff158e00a6569c53a9f2117866.tar.gz
puppet-0502d934b65539ff158e00a6569c53a9f2117866.tar.bz2
puppet-0502d934b65539ff158e00a6569c53a9f2117866.tar.xz
puppet-0502d934b65539ff158e00a6569c53a9f2117866.zip
cleaning of the sudo module
Diffstat (limited to 'modules')
-rw-r--r--modules/sudo/manifests/init.pp19
1 files changed, 5 insertions, 14 deletions
diff --git a/modules/sudo/manifests/init.pp b/modules/sudo/manifests/init.pp
index 28e3ee97..c2696e23 100644
--- a/modules/sudo/manifests/init.pp
+++ b/modules/sudo/manifests/init.pp
@@ -1,29 +1,20 @@
class sudo {
- package { sudo:
- ensure => installed;
- }
+ package { sudo: }
file { "/etc/sudoers.d":
ensure => directory,
mode => 711,
- owner => root,
- group => root,
}
file { "/etc/sudoers":
- ensure => present,
- owner => root,
- group => root,
- mode => 440,
- content => template("sudo/sudoers")
+ mode => 440,
+ content => template("sudo/sudoers")
}
define sudoers_config($content) {
- file { "/etc/sudoers.d/$name":
- owner => root,
- group => root,
+ file { "/etc/sudoers.d/$name":
mode => 440,
content => $content,
- }
+ }
}
}