aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xinetd/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-03-19 20:36:12 +0000
committerMichael Scherer <misc@mageia.org>2012-03-19 20:36:12 +0000
commit6fdf30c5f0cce1e3c40455cb92f2e9f001eb2ca5 (patch)
tree43bce9017137ab0e8fb585860bcbcc470f7b0a72 /modules/xinetd/manifests
parentda72c9e98e94a06d97103c8353c9dda086037986 (diff)
downloadpuppet-6fdf30c5f0cce1e3c40455cb92f2e9f001eb2ca5.tar
puppet-6fdf30c5f0cce1e3c40455cb92f2e9f001eb2ca5.tar.gz
puppet-6fdf30c5f0cce1e3c40455cb92f2e9f001eb2ca5.tar.bz2
puppet-6fdf30c5f0cce1e3c40455cb92f2e9f001eb2ca5.tar.xz
puppet-6fdf30c5f0cce1e3c40455cb92f2e9f001eb2ca5.zip
clean the module by splitting it in 2 files
Diffstat (limited to 'modules/xinetd/manifests')
-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']
+ }
+}
+