1 |
class xinetd { |
class xinetd { |
2 |
package { "xinetd": |
package { "xinetd": } |
|
ensure => installed |
|
|
} |
|
3 |
|
|
4 |
service { xinetd: |
service { xinetd: |
5 |
ensure => running, |
ensure => running, |
6 |
path => "/etc/init.d/xinetd", |
path => "/etc/init.d/xinetd", |
7 |
subscribe => [ Package["xinetd"] ] |
subscribe => [ Package["xinetd"] ] |
8 |
} |
} |
9 |
|
|
10 |
define service($content) { |
define service($content) { |
11 |
include xinetd |
include xinetd |
12 |
file { "/etc/xinetd.d/$name": |
file { "/etc/xinetd.d/$name": |
|
ensure => present, |
|
|
owner => root, |
|
|
group => root, |
|
|
mode => 644, |
|
13 |
require => Package["xinetd"], |
require => Package["xinetd"], |
14 |
content => $content, |
content => $content, |
15 |
notify => Service['xinetd'] |
notify => Service['xinetd'] |