From 81b2cd2e9c735a568528d598d510c81a94149aca Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 18 May 2021 13:33:37 -0700 Subject: [PATCH] download: adjust koji mount to allow odcs/eln images to work right Right now odcs uses /mnt/koji for packages links, but uses /mnt/fedora_koji/koji for images. Adjusting this and adding a link in should fix it for both. Signed-off-by: Kevin Fenzi --- playbooks/groups/download.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/playbooks/groups/download.yml b/playbooks/groups/download.yml index 051fe40b6e..b096276db7 100644 --- a/playbooks/groups/download.yml +++ b/playbooks/groups/download.yml @@ -39,7 +39,7 @@ - rsyncd - { 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", 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/fedora_koji', nfs_src_dir: 'fedora_koji' } # needed for internal sync and odcs - { role: nfs/client, when: datacenter == "iad2", mnt_dir: '/mnt/odcs', nfs_src_dir: 'fedora_odcs' } # needed for internal sync - sudo @@ -73,6 +73,9 @@ copy: src="{{ files }}/download/download-sync.cron.cc-rdu01" dest=/etc/cron.d/download-sync owner=root group=root mode=644 when: inventory_hostname == 'download-cc-rdu01.fedoraproject.org' + - name: make a mnt/koji link + file: state=link src=/mnt/fedora_koji/koji dest=/mnt/koji + handlers: - import_tasks: "{{ handlers_path }}/restart_services.yml"