sundries and proxies / staging: switch to new flatpak-indexer

Under the old setup, we ran 'reg' on sundries and then synced that
content (in 3 rsyncs) to proxies.

With this new setup, flatpak-indexer runs in openshift. It has a nfs
volume where it writes it's output too. We rsync just that entire output
directory to the proxies. This includes things like deltas.

This commit should only affect staging, we will roll to production
later.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2021-03-09 12:33:44 -08:00
parent b78fbabd71
commit 9116768e2a
5 changed files with 10 additions and 28 deletions

View file

@ -29,7 +29,7 @@
- role: easyfix/gather
when: master_sundries_node|bool
- role: regindexer/build
when: master_sundries_node|bool
when: master_sundries_node|bool and env != "staging"
- role: bz_review_report
when: master_sundries_node|bool and env != "staging"
- rsyncd
@ -69,6 +69,11 @@
mnt_dir: '/srv/web/review-stats'
nfs_src_dir: 'openshift_{{ env_short }}_reviewstats'
mount_stg: true
- role: nfs/client
mnt_dir: '/srv/web/registry-index'
nfs_src_dir: '/flatpak-indexer-storage{{ env_short }}'
mount_stg: true
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"

View file

@ -1 +0,0 @@
30 * * * * root /usr/bin/rsync --delete -a --no-owner --no-group sundries01::registry-signatures/ /srv/web/registry-signatures/

View file

@ -4,18 +4,6 @@
- fedora-web
when: env != 'staging'
- name: make registry-signatures dir
file: state=directory path=/srv/web/registry-signatures owner=apache group=apache mode=2775 setype=httpd_sys_content_t seuser=system_u
tags:
- fedora-web
when: env == 'staging'
- name: make registry-index dir
file: state=directory path=/srv/web/registry-index owner=apache group=sysadmin-releng mode=755 setype=httpd_sys_content_t seuser=system_u
tags:
- fedora-web
when: env != 'staging'
- name: make registry-index dir
file: state=directory path=/srv/web/registry-index owner=apache group=apache mode=755 setype=httpd_sys_content_t seuser=system_u
tags:
@ -31,20 +19,8 @@
- fedora-web
- fedora-web/registry
#- name: Copy in the sync-registry-signatures cronjob
# copy: src=cron-sync-registry-signatures dest=/etc/cron.d/sync-registry-signatures
# tags:
# - fedora-web
# - fedora-web/registry
- name: Temporarily disable the registry-signatures cronjob
file: path=/etc/cron.d/sync-registry-signatures state=absent
tags:
- fedora-web
- fedora-web/registry
- name: Copy in the sync-registry-index cronjob
copy: src=cron-sync-registry-index dest=/etc/cron.d/sync-registry-index
template: src=cron-sync-registry-index dest=/etc/cron.d/sync-registry-index
tags:
- fedora-web
- fedora-web/registry

View file

@ -1,3 +1,5 @@
30 * * * * root /usr/bin/rsync -a --no-owner --no-group sundries01::registry-index/ /srv/web/registry-index/
{% if env != 'staging' %}
31 * * * * root /usr/bin/rsync --delete -a --no-owner --no-group sundries01::regindexer/index/ /srv/web/registry-index/index/
32 * * * * root /usr/bin/rsync --delete -a --no-owner --no-group sundries01::regindexer/icons/ /srv/web/registry-index/icons/
{% endif %}

View file

@ -192,7 +192,7 @@ hosts allow = 10.5.126.0/255.255.255.0 192.168.0.0/255.255.0.0 10.5.128.0/255.25
[registry-index]
comment = registry-index
path = /var/lib/reg-server/static/
path = /srv/web/registry-index
uid = root
gid = root
read only = yes