From 2a2f4744f14c5411f633a4d3068abf73b82867f5 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Wed, 20 Apr 2011 12:24:13 +0000 Subject: add rsync for isos directory --- modules/bcd/manifests/init.pp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'modules/bcd/manifests/init.pp') 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' + } + } } -- cgit v1.2.1