aboutsummaryrefslogtreecommitdiffstats
path: root/modules
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
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')
-rw-r--r--modules/rsyncd/manifests/init.pp35
-rw-r--r--modules/rsyncd/templates/rsyncd.conf12
-rw-r--r--modules/rsyncd/templates/xinetd12
3 files changed, 59 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")
+ }
+}
diff --git a/modules/rsyncd/templates/rsyncd.conf b/modules/rsyncd/templates/rsyncd.conf
new file mode 100644
index 00000000..c1177d52
--- /dev/null
+++ b/modules/rsyncd/templates/rsyncd.conf
@@ -0,0 +1,12 @@
+# $Id$
+
+uid = nobody
+gid = nogroup
+
+[mageia]
+ path = /distrib/mirror/
+ comment = Mageia Mirror Tree
+ hosts allow = \
+ distrib-coffee.ipsl.jussieu.fr \
+ distribipsl.aero.jussieu.fr \
+ ibiblio.org \
diff --git a/modules/rsyncd/templates/xinetd b/modules/rsyncd/templates/xinetd
new file mode 100644
index 00000000..46a3fd33
--- /dev/null
+++ b/modules/rsyncd/templates/xinetd
@@ -0,0 +1,12 @@
+# $Id: xinetd 319 2009-02-28 17:05:16Z guillomovitch $
+service rsync
+{
+ disable = no
+ socket_type = stream
+ wait = no
+ user = root
+ server = /usr/bin/rsync
+ server_args = --daemon
+ log_on_failure += USERID
+}
+