aboutsummaryrefslogtreecommitdiffstats
path: root/modules/rsyncd/manifests
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mageia.org>2010-10-26 22:52:41 +0000
committerOlivier Thauvin <nanardon@mageia.org>2010-10-26 22:52:41 +0000
commit59d9b2c3c1d39e08dbcc864ea0a47269e6a8dff9 (patch)
tree61278459a03eedfe1179c412a941bcf8ec31a8ca /modules/rsyncd/manifests
parent43190ccb498faf2e83d0d9225d312c60707ead77 (diff)
downloadpuppet-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.pp35
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")
+ }
+}