aboutsummaryrefslogtreecommitdiffstats
path: root/modules/rsyncd/manifests/init.pp
blob: 98f5db457a81007ad8fdd55cf04a3b64480ea2b2 (plain)
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
class rsyncd {

    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")
    }
}