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