aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xinetd/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'modules/xinetd/manifests')
-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']