Index: modules/filtermaster/templates/sshd_rsync.erb |
diff --git a/modules/filtermaster/templates/sshd_rsync.erb b/modules/filtermaster/templates/sshd_rsync.erb |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e13a10cd239df9978cda14436b840661aa68b030 |
--- /dev/null |
+++ b/modules/filtermaster/templates/sshd_rsync.erb |
@@ -0,0 +1,13 @@ |
+Match User rsync |
+ AllowTcpForwarding no |
+ X11Forwarding no |
+ AllowAgentForwarding no |
+ GatewayPorts no |
+ ForceCommand rsync --server --sender -vltprz --delete-excluded .<% |
+ @repo_downloads.sort.each do |key,repo| |
+ (repo['static_files'] or []).each do |name| |
+ %> /home/rsync/subscription/<%= key %>/<%= name %><% |
+ end |
+ end |
+ %> /home/rsync/generated/data/ |
+ |