Skip to content

Commit

Permalink
drop stagingyum from rsync config
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed May 8, 2024
1 parent a4e3c09 commit 89df62f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions puppet/modules/profiles/manifests/web.pp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,5 @@
}
contain web::vhost::yum

class { 'web::vhost::stagingyum':
rsync_max_connections => $rsync_max_connections,
}
contain web::vhost::stagingyum
}
12 changes: 0 additions & 12 deletions puppet/modules/web/manifests/vhost/stagingyum.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Stdlib::Absolutepath $yum_directory = '/var/www/vhosts/stagingyum/htdocs',
String $user = 'yumrepostage',
Stdlib::Absolutepath $home = "/home/${user}",
Integer[0] $rsync_max_connections = 5,
Array[String[1]] $usernames = ['ehelms', 'evgeni', 'ekohl', 'Odilhao', 'pcreech', 'zhunting'],
) {
$yum_directory_config = [
Expand Down Expand Up @@ -51,17 +50,6 @@
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,
Expand Down

0 comments on commit 89df62f

Please sign in to comment.