diff options
Diffstat (limited to 'modules/rsyncd/manifests/init.pp')
-rw-r--r-- | modules/rsyncd/manifests/init.pp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/rsyncd/manifests/init.pp b/modules/rsyncd/manifests/init.pp new file mode 100644 index 00000000..13bdc277 --- /dev/null +++ b/modules/rsyncd/manifests/init.pp @@ -0,0 +1,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") + } +} |