rsyncd / download: adjust odcs to allow package rsyncs

odcs just links to the packages in a compose on the /mnt/koji volume
with relative symlinks. ie (
../../../../../../../../mnt/koji/packages/zip/3.0/28.eln109/data/signed/9867c58f/x86_64/zip-3.0-28.eln109.x86_64.rpm
)
Change odcs on download servers to mount on /mnt like koji and then tell
rsync to chroot at /mnt, so it can follow those links and copy the file
from koji volume.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2021-05-17 13:46:36 -07:00
parent f23fd1b7a1
commit e0662c5f2d
3 changed files with 4 additions and 4 deletions

View file

@ -40,7 +40,7 @@
- { role: nfs/client, when: datacenter == "iad2" or datacenter == "rdu", mnt_dir: '/srv/pub', nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub' } - { role: nfs/client, when: datacenter == "iad2" or datacenter == "rdu", mnt_dir: '/srv/pub', nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub' }
- { role: nfs/client, when: datacenter == "iad2" or datacenter == "rdu", mnt_dir: '/srv/pub/archive', nfs_src_dir: 'fedora_ftp_archive' } - { role: nfs/client, when: datacenter == "iad2" or datacenter == "rdu", mnt_dir: '/srv/pub/archive', nfs_src_dir: 'fedora_ftp_archive' }
- { role: nfs/client, when: datacenter == "iad2", mnt_dir: '/mnt/koji', nfs_src_dir: 'fedora_koji/koji/' } # needed for internal sync and odcs - { role: nfs/client, when: datacenter == "iad2", mnt_dir: '/mnt/koji', nfs_src_dir: 'fedora_koji/koji/' } # needed for internal sync and odcs
- { role: nfs/client, when: datacenter == "iad2", mnt_dir: '/srv/odcs', nfs_src_dir: 'fedora_odcs' } # needed for internal sync - { role: nfs/client, when: datacenter == "iad2", mnt_dir: '/mnt/odcs', nfs_src_dir: 'fedora_odcs' } # needed for internal sync
- sudo - sudo
pre_tasks: pre_tasks:

View file

@ -1,5 +1,5 @@
Alias /pub /srv/pub Alias /pub /srv/pub
Alias /odcs /srv/odcs Alias /odcs /mnt/odcs
DocumentRoot /srv/web DocumentRoot /srv/web
@ -18,7 +18,7 @@ DocumentRoot /srv/web
</IfModule> </IfModule>
</Directory> </Directory>
<Directory /srv/odcs> <Directory /mnt/odcs>
HeaderName /HEADER.html HeaderName /HEADER.html
ReadmeName /FOOTER.html ReadmeName /FOOTER.html
Options Indexes FollowSymLinks Options Indexes FollowSymLinks

View file

@ -96,7 +96,7 @@ refuse options = checksum
[ fedora-eln ] [ fedora-eln ]
comment = Fedora ELN composes comment = Fedora ELN composes
path = /srv/odcs path = /./mnt/odcs
{% if inventory_hostname in groups['download_tier1'] %} {% if inventory_hostname in groups['download_tier1'] %}
hosts allow = {% for host in vars['dl_tier1'] %}{{host}},{% endfor %} hosts allow = {% for host in vars['dl_tier1'] %}{{host}},{% endfor %}
{% endif %} {% endif %}