From 4b78324725b54fd69dd38002d103d69f93bc04ad Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 13 Jan 2011 20:33:49 +0000 Subject: add a xinetd module --- modules/xinetd/manifests/init.pp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 modules/xinetd/manifests/init.pp (limited to 'modules/xinetd/manifests') diff --git a/modules/xinetd/manifests/init.pp b/modules/xinetd/manifests/init.pp new file mode 100644 index 00000000..1915c9db --- /dev/null +++ b/modules/xinetd/manifests/init.pp @@ -0,0 +1,25 @@ +class xinetd { + package { "xinetd": + ensure => installed + } + + 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'] + } + } +} + -- cgit v1.2.1