aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-01-08 20:45:21 +0000
committerMichael Scherer <misc@mageia.org>2012-01-08 20:45:21 +0000
commit41ee7334a1caad53759566372e0de2e95bfa4842 (patch)
treefeefb4083d3fe3f843ec985481d6c3ea5e02fa9f
parent8705eb864734a69d2180275e4c6ae00cb14d64bd (diff)
downloadpuppet-41ee7334a1caad53759566372e0de2e95bfa4842.tar
puppet-41ee7334a1caad53759566372e0de2e95bfa4842.tar.gz
puppet-41ee7334a1caad53759566372e0de2e95bfa4842.tar.bz2
puppet-41ee7334a1caad53759566372e0de2e95bfa4842.tar.xz
puppet-41ee7334a1caad53759566372e0de2e95bfa4842.zip
cleaning xinetd module
-rw-r--r--modules/xinetd/manifests/init.pp10
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/xinetd/manifests/init.pp b/modules/xinetd/manifests/init.pp
index 1915c9db..5b17b16a 100644
--- a/modules/xinetd/manifests/init.pp
+++ b/modules/xinetd/manifests/init.pp
@@ -1,21 +1,15 @@
class xinetd {
- package { "xinetd":
- ensure => installed
- }
+ package { "xinetd": }
service { xinetd:
ensure => running,
path => "/etc/init.d/xinetd",
subscribe => [ Package["xinetd"] ]
}
-
+
define service($content) {
include xinetd
file { "/etc/xinetd.d/$name":
- ensure => present,
- owner => root,
- group => root,
- mode => 644,
require => Package["xinetd"],
content => $content,
notify => Service['xinetd']