Parent Directory | Revision Log
add a xinetd module
1 | class xinetd { |
2 | package { "xinetd": |
3 | ensure => installed |
4 | } |
5 | |
6 | service { xinetd: |
7 | ensure => running, |
8 | path => "/etc/init.d/xinetd", |
9 | subscribe => [ Package["xinetd"] ] |
10 | } |
11 | |
12 | define service($content) { |
13 | include xinetd |
14 | file { "/etc/xinetd.d/$name": |
15 | ensure => present, |
16 | owner => root, |
17 | group => root, |
18 | mode => 644, |
19 | require => Package["xinetd"], |
20 | content => $content, |
21 | notify => Service['xinetd'] |
22 | } |
23 | } |
24 | } |
25 |
ViewVC Help | |
Powered by ViewVC 1.1.30 |