aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xinetd
diff options
context:
space:
mode:
Diffstat (limited to 'modules/xinetd')
-rw-r--r--modules/xinetd/manifests/init.pp10
-rw-r--r--modules/xinetd/manifests/service.pp9
2 files changed, 9 insertions, 10 deletions
diff --git a/modules/xinetd/manifests/init.pp b/modules/xinetd/manifests/init.pp
index 1865df91..a86aaeee 100644
--- a/modules/xinetd/manifests/init.pp
+++ b/modules/xinetd/manifests/init.pp
@@ -4,14 +4,4 @@ class xinetd {
service { 'xinetd':
subscribe => Package['xinetd']
}
-
- define service($content) {
- include xinetd
- file { "/etc/xinetd.d/$name":
- require => Package['xinetd'],
- content => $content,
- notify => Service['xinetd']
- }
- }
}
-
diff --git a/modules/xinetd/manifests/service.pp b/modules/xinetd/manifests/service.pp
new file mode 100644
index 00000000..23ebeedf
--- /dev/null
+++ b/modules/xinetd/manifests/service.pp
@@ -0,0 +1,9 @@
+define xinetd::service($content) {
+ include xinetd
+ file { "/etc/xinetd.d/$name":
+ require => Package['xinetd'],
+ content => $content,
+ notify => Service['xinetd']
+ }
+}
+