From 6fdf30c5f0cce1e3c40455cb92f2e9f001eb2ca5 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 19 Mar 2012 20:36:12 +0000 Subject: clean the module by splitting it in 2 files --- modules/xinetd/manifests/init.pp | 10 ---------- modules/xinetd/manifests/service.pp | 9 +++++++++ 2 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 modules/xinetd/manifests/service.pp (limited to 'modules/xinetd/manifests') 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'] + } +} + -- cgit v1.2.1