1 |
class rsyncd { |
2 |
|
3 |
package { xinetd: |
4 |
ensure => installed |
5 |
} |
6 |
|
7 |
service { xinetd: |
8 |
ensure => running, |
9 |
path => "/etc/init.d/xinetd", |
10 |
subscribe => [ Package["xinetd"], File["rsync"] ] |
11 |
} |
12 |
|
13 |
file { "rsync": |
14 |
path => "/etc/xinetd.d/rsync", |
15 |
ensure => present, |
16 |
owner => root, |
17 |
group => root, |
18 |
mode => 644, |
19 |
require => Package["xinetd"], |
20 |
content => template("rsyncd/xinetd") |
21 |
} |
22 |
|
23 |
file { "rsyncd.conf": |
24 |
path => "/etc/rsyncd.conf", |
25 |
ensure => present, |
26 |
owner => root, |
27 |
group => root, |
28 |
mode => 644, |
29 |
require => Package["rsync"], |
30 |
content => template("rsyncd/rsyncd.conf") |
31 |
} |
32 |
} |