aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/bcd/manifests/init.pp14
-rw-r--r--modules/bcd/templates/rsyncd.conf9
2 files changed, 23 insertions, 0 deletions
diff --git a/modules/bcd/manifests/init.pp b/modules/bcd/manifests/init.pp
index d69a6aa2..bba103f2 100644
--- a/modules/bcd/manifests/init.pp
+++ b/modules/bcd/manifests/init.pp
@@ -2,6 +2,7 @@ class bcd {
class variable {
$bcd_login = 'bcd'
$bcd_home = '/home/bcd'
+ $public_isos = "$bcd_home/public_html/isos"
$isomakers_group = 'mga-iso_makers'
}
@@ -13,6 +14,13 @@ class bcd {
comment => "User for creating ISOs",
}
+ file { $public_isos:
+ ensure => directory,
+ owner => $bcd_login,
+ group => $bcd_login,
+ mode => 755,
+ }
+
#package { bcd:
# ensure => 'installed',
#}
@@ -36,4 +44,10 @@ class bcd {
content => template('bcd/vhost_bcd.conf'),
}
}
+
+ class rsync inherits base {
+ class { rsyncd:
+ rsyncd_conf => 'bcd/rsyncd.conf'
+ }
+ }
}
diff --git a/modules/bcd/templates/rsyncd.conf b/modules/bcd/templates/rsyncd.conf
new file mode 100644
index 00000000..959e5374
--- /dev/null
+++ b/modules/bcd/templates/rsyncd.conf
@@ -0,0 +1,9 @@
+# $Id: rsyncd.conf 1419 2011-03-29 17:04:07Z nanardon $
+
+uid = nobody
+gid = nogroup
+
+[isos]
+ path = <%= public_isos %>
+ comment = Mageia ISOs
+