diff options
-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'] + } + } +} + |