diff options
author | Olivier Thauvin <nanardon@mageia.org> | 2010-10-26 22:52:41 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mageia.org> | 2010-10-26 22:52:41 +0000 |
commit | 59d9b2c3c1d39e08dbcc864ea0a47269e6a8dff9 (patch) | |
tree | 61278459a03eedfe1179c412a941bcf8ec31a8ca /modules/rsyncd/manifests | |
parent | 43190ccb498faf2e83d0d9225d312c60707ead77 (diff) | |
download | puppet-59d9b2c3c1d39e08dbcc864ea0a47269e6a8dff9.tar puppet-59d9b2c3c1d39e08dbcc864ea0a47269e6a8dff9.tar.gz puppet-59d9b2c3c1d39e08dbcc864ea0a47269e6a8dff9.tar.bz2 puppet-59d9b2c3c1d39e08dbcc864ea0a47269e6a8dff9.tar.xz puppet-59d9b2c3c1d39e08dbcc864ea0a47269e6a8dff9.zip |
- add rsyncd config
Diffstat (limited to 'modules/rsyncd/manifests')
-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") + } +} |