diff options
author | Michael Scherer <misc@mageia.org> | 2011-01-13 20:33:49 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-01-13 20:33:49 +0000 |
commit | 4b78324725b54fd69dd38002d103d69f93bc04ad (patch) | |
tree | 4c381b6f632c7dc976fd934e3302bd3cfe730506 /modules/xinetd/manifests | |
parent | de5d12a142814441c921a34beb4f9eaf6fcf5a91 (diff) | |
download | puppet-4b78324725b54fd69dd38002d103d69f93bc04ad.tar puppet-4b78324725b54fd69dd38002d103d69f93bc04ad.tar.gz puppet-4b78324725b54fd69dd38002d103d69f93bc04ad.tar.bz2 puppet-4b78324725b54fd69dd38002d103d69f93bc04ad.tar.xz puppet-4b78324725b54fd69dd38002d103d69f93bc04ad.zip |
add a xinetd module
Diffstat (limited to 'modules/xinetd/manifests')
-rw-r--r-- | modules/xinetd/manifests/init.pp | 25 |
1 files changed, 25 insertions, 0 deletions
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'] + } + } +} + |