Commit Graph

166 Commits

Author SHA1 Message Date
Pavel Raiskup
5e75fa84c6 copr-dist-git: rebuilding cgit data takes one hour 2023-01-03 13:20:07 +01:00
Pavel Raiskup
cee1d4f43c copr-dist-git: drop the projects-list option
That was non-working for some time, since:
2e64a15058

Relates: https://github.com/fedora-copr/copr/pull/2423
2022-12-05 16:13:11 +01:00
Pavel Raiskup
cb2908cc48 copr-dist-git: don't re-add SWAP volume
This volume has been dropped, we now use the /swap swap-file, same as
the other Copr servers.
2022-11-30 09:55:30 +01:00
Jakub Kadlcik
428cdbe1e3 copr: there is python3.11 on F37 2022-11-21 11:38:33 +01:00
Pavel Raiskup
d63f67e106 copr-dist-git: allow importing autospec srpms
https://pagure.io/copr/copr/issue/2317
2022-10-04 15:52:06 +02:00
Jakub Kadlcik
6a654a4bba copr: create per-task-logs symlink even on production
We don't want to mount volume for /var/lib/copr-dist-git anymore.
2022-02-21 21:33:09 +01:00
Jakub Kadlcik
c98410fd08 copr: don't set the per-task-logs permissions
It doesn't work. I suspect it changes ownership of the `src` file
instead of the destination. And we don't need that.
2022-02-21 19:09:54 +01:00
Jakub Kadlcik
cb09b66802 copr: setting symlink permissions doesn't work
I am trying to set the correct permissions in a separate step. Maybe
it will help.
2022-02-21 18:46:14 +01:00
Jakub Kadlcik
c2a657d5ce copr: use path instead of dest 2022-02-21 18:39:39 +01:00
Jakub Kadlcik
4217a98ca8 copr: create per-task-logs symlink with the correct owner 2022-02-21 18:21:40 +01:00
Jakub Kadlcik
a234b3116c copr: symlink per-task-logs from the bigger disk 2022-02-21 18:13:30 +01:00
Silvie Chlupova
5df624c6a3 copr: run prune-dist-git.py in daily cron again
Relates: https://pagure.io/copr/copr/pull-request/2101
Relates: https://pagure.io/copr/copr/issue/2078
2022-02-21 10:06:41 +01:00
Silvie Chlupova
534a2d5289 copr: we already run this daily 2022-02-15 15:16:29 +01:00
Silvie Chlupova
f937e22a92 copr: we don't need this cron job, we use more sophisticated script
We used to use prune-dist-git.py script which deleted data from distgit
repositories and lookaside cache. Now we use dist-git-clear-tarballs.py script
which can delete only sources not mentioned in the last commits
of the git repo branches.
Relates: https://pagure.io/copr/copr/issue/2078
2022-02-15 14:58:27 +01:00
Silvie Chlupova
d72b5db3e3 copr: update copr-dit-git.monthly to contain all copr dist-git cron jobs 2022-02-14 12:08:22 +01:00
Jakub Kadlcik
5249952c7b copr: prune old per-task-logs daily
The upstream package suggests to prune per-task-logs monthly but with
all the mass rebuilds going on right now (@copr/PyPI,
@rubygems/rubygems), I think it is safer to prune them daily.
2022-02-13 17:56:15 +01:00
Silvie Chlupova
05c986ba1c copr-distgit: adding cron job for removing old tarballs 2022-02-09 12:58:40 +01:00
Jakub Kadlcik
b90b8b2416 copr: the official python3-rpkg-1.63-4 fixes the issue 2022-02-03 12:33:22 +01:00
Pavel Raiskup
8d10a95834 copr-be/copr-dg: tag package installation with "packages" 2022-01-20 13:37:56 +01:00
Silvie Chlupova
87e510f378 copr: nagios check for copr frontend, backend and distgit
Fixes: https://pagure.io/copr/copr/issue/2002
2022-01-20 11:47:14 +01:00
Silvie Chlupova
22bf73ae9e copr: move installation of node_exporter to copr base role 2021-12-06 11:18:34 +01:00
Silvie Chlupova
356dca4cc7 copr: support for generating metrics on copr dist-git servers 2021-12-06 10:09:46 +01:00
Jakub Kadlcik
d4ec2983e9 copr: somehow, a version should be specified 2021-11-27 02:16:50 +01:00
Jakub Kadlcik
2e3e81674d copr: oops, syntax error 2021-11-27 02:06:09 +01:00
Jakub Kadlcik
be96df9e3f copr: install custom build of python3-rpkg to distgit
See https://pagure.io/rpkg/issue/588
See https://pagure.io/copr/copr/pull-request/1998
2021-11-27 02:02:39 +01:00
Silvie Chlupová
274fa87d44 copr-distgit: drop patch, it's fixed in fedora 35, we don't need it 2021-11-22 11:32:23 +01:00
Pavel Raiskup
0d070d1941 copr-dist-git: correct patch reference
Complements 8a08f87d43
2021-06-02 08:35:03 +02:00
Pavel Raiskup
8a08f87d43 copr-dist-git: fix failing Thunderbird import
Fixes: https://pagure.io/copr/copr/issue/1700
2021-06-02 08:32:39 +02:00
Pavel Raiskup
0aede26200 copr-dist-git: simplify cgitrc config, #2
See previous commit.
2021-04-27 22:16:01 +02:00
Pavel Raiskup
4e95c76e0b copr-dist-git: simplify cgitrc config
This is a missing step after:
2e64a15058
2021-04-27 22:01:45 +02:00
Miroslav Suchý
8cba3702a0 copr: enable prune-dist-git.py 2021-03-29 13:21:12 +02:00
Miroslav Suchý
69e2bd3cb1 copr: define git_gc_depth for copr-dist-git 2021-02-10 12:28:33 +01:00
Pavel Raiskup
2d47ed082f copr-dist-git: drop swap re-mount
Swap is mounted by tasks/swap.yml.
2020-11-18 14:01:53 +01:00
Pavel Raiskup
b9bcba056a copr: dist-git: disable copr-dist-git pruner for now
Per logs sent to us by crond, I suppose there's some bug.
2020-04-24 21:34:26 +02:00
Miroslav Suchý
ba99028573 copr: mount this swap only on prod 2020-04-24 21:34:25 +02:00
Miroslav Suchý
c0b8624dc4 copr: typo 2020-04-24 21:34:25 +02:00
Miroslav Suchý
18519c9a09 copr: enable swap on be, fe, dist-git 2020-04-24 21:34:25 +02:00
Jakub Kadlcik
795ff4e021 copr: ensure that .config directory exists 2020-04-24 21:34:25 +02:00
Jakub Kadlcik
5ce2fa72b3 copr: automatically prune distgit repos 2020-04-24 21:34:25 +02:00
Pavel Raiskup
e49912067a copr-dist-git: add missing task names
So we can better orient in playbook output.
2020-04-24 21:34:24 +02:00
Pavel Raiskup
2d1b607186 copr-dist-git: disable cgit periodic scanning
That is taking too long, and eats too much io probably (complicates
rsyncing to aws).
2020-04-24 21:34:24 +02:00
Miroslav Suchý
25b43d9a38 copr: restart copr-dist-git service when config change 2020-04-24 21:34:24 +02:00
Miroslav Suchý
9c7be4c67e copr: correct path to ssl cert 2020-04-24 21:34:24 +02:00
Miroslav Suchý
5723472a5c copr: do not run services on dist-git until migration is done 2020-04-24 21:34:24 +02:00
Pavel Raiskup
35d3004667 copr: drop rest of hot-fix patch files 2020-04-24 21:34:22 +02:00
Pavel Raiskup
70c25021cc copr: update infrastructure password
https://pagure.io/fedora-infrastructure/issue/8555
2020-04-24 21:34:21 +02:00
Pavel Raiskup
a73a64213d copr: dist-git: try one hotfix patch 2020-04-24 21:34:18 +02:00
Pavel Raiskup
3cc27430b6 copr: rework letsencrypt
We need two-phase configuration for Let's Encrypt:

1. initialize; the letsencrypt automation, this is happening only
   once per VM (when it is spawned)
2. periodic; using certbot-renew.timer.

Both those phases are now wrapped into copr/certbot role.

Phase 1. needs to be done before the web-server is started (so
include the role on appropriate place in the playbook), so we can
do 'certbot --standalone' (bounds to port 80).
Phase 2. is accomplished using the running web-server, using
'certbot renew --webroot'.

If (and only if) the certificate is renewed, web server needs to
be restarted (and lighttpd needs to have post-processed
certificate format).  So we also need the deploy hook script in
hand (two actually, lighttpd/httpd) so 'certbot renew'
automatically does what we expect it to do.
2019-07-19 11:20:00 +02:00
Pavel Raiskup
ab78c47a51 copr: letsencrypt: don't force renewal daily
The `renew` command will automatically renew the certificate once
the validity is smaller tan 30 days:
https://certbot.eff.org/docs/using.html?highlight=renew#renewing-certificates
2019-07-18 14:28:46 +02:00
Pavel Raiskup
2b238c9c88 copr: dist-git: install nfs-utils package
This is needed since we are going to move to NFS storage soon.
2019-07-17 10:16:59 +02:00