diff --git a/puppet/modules/profiles/manifests/web.pp b/puppet/modules/profiles/manifests/web.pp index e19552534..d1b4be983 100644 --- a/puppet/modules/profiles/manifests/web.pp +++ b/puppet/modules/profiles/manifests/web.pp @@ -61,5 +61,8 @@ } contain web::vhost::yum + class { 'web::vhost::stagingyum': + rsync_max_connections => $rsync_max_connections, + } contain web::vhost::stagingyum } diff --git a/puppet/modules/web/manifests/vhost/stagingyum.pp b/puppet/modules/web/manifests/vhost/stagingyum.pp index 14f1e926b..9c4387a0d 100644 --- a/puppet/modules/web/manifests/vhost/stagingyum.pp +++ b/puppet/modules/web/manifests/vhost/stagingyum.pp @@ -5,6 +5,7 @@ Stdlib::Absolutepath $yum_directory = '/var/www/vhosts/stagingyum/htdocs', String $user = 'yumrepostage', Stdlib::Absolutepath $home = "/home/${user}", + Integer[0] $rsync_max_connections = 5, ) { $yum_directory_config = [ { @@ -44,6 +45,17 @@ directories => $yum_directory_config, } + include rsync::server + rsync::server::module { 'stagingyum': + path => $yum_directory, + list => true, + read_only => true, + comment => $servername, + uid => 'nobody', + gid => 'nobody', + max_connections => $rsync_max_connections, + } + ['HEADER.html', 'robots.txt'].each |$filename| { file { "${yum_directory}/${filename}": ensure => file,