Michal Konecny
2ec055db6f
Use first uppercase letter for all handlers
...
This will unify all the handlers to use first uppercase letter for
ansible-lint to stop complaining.
I went through all `notify:` occurrences and fixed them by running
```
set TEXT "text_to_replace"; set REPLACEMENT "replacement_text"; git grep
-rlz "$TEXT" . | xargs -0 sed -i "s/$TEXT/$REPLACEMENT/g"
```
Then I went through all the changes and removed the ones that wasn't
expected to be changed.
Fixes https://pagure.io/fedora-infrastructure/issue/12391
Signed-off-by: Michal Konecny <mkonecny@redhat.com >
2025-02-10 20:31:49 +00:00
Jakub Kadlcik
c06de2f370
copr-dist-git: add custom httpd message for disabled cgit
...
Fix https://github.com/fedora-copr/copr/issues/3595
2025-01-22 17:23:52 +01:00
Ryan Lerch
47c68f478d
ansiblelint fixes - fqcn[action-core] - template to ansible.builtin.template
...
Replaces references to template: with ansible.builtin.template
Signed-off-by: Ryan Lerch <rlerch@redhat.com >
2025-01-15 11:30:29 +10:00
Ryan Lerch
462176464b
ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command
...
Replaces many references to command: with ansible.builtin.command
Signed-off-by: Ryan Lerch <rlerch@redhat.com >
2025-01-15 11:26:47 +10:00
Ryan Lerch
6a3816dfdc
ansiblelint fixes-- fqcn[action-core] - copy to ansible.builtin.copy
...
Replaces many references to 'copy' with ansible.builtin.copy
Signed-off-by: Ryan Lerch <rlerch@redhat.com >
2025-01-15 10:43:31 +10:00
Ryan Lerch
62952df107
ansiblelint fixes-- fqcn[action-core] - file to ansible.builtin.file
...
Replaces many references to file: with ansible.builtin.file
Signed-off-by: Ryan Lerch <rlerch@redhat.com >
2025-01-15 10:41:52 +10:00
Ryan Lerch
691adee6ee
Fix name[casing] ansible-lint issues
...
fix 1900 failures of the following case issue:
`name[casing]: All names should start with an uppercase letter.`
Signed-off-by: Ryan Lerch <rlerch@redhat.com >
2025-01-14 20:20:07 +10:00
Pavel Raiskup
11197ba97b
copr-dist-git: tag the certbot role include
2024-12-04 10:08:53 +01:00
Ryan Lerch
89f6f1fc32
Fix majority of remaining yamllint warnings and errors
...
Signed-off-by: Ryan Lerch <rlerch@redhat.com >
2024-11-28 17:31:45 +10:00
Jakub Kadlcik
ee282f23ae
copr-dist-git: disable directory.safe check
2024-06-05 15:07:50 +02:00
Pavel Raiskup
caefb83684
copr-dist-git: fix typo
2023-12-17 11:40:04 +01:00
Pavel Raiskup
5766ff851c
copr-dist-git: run the cleanup cron twice per month
...
https://github.com/fedora-copr/copr/issues/3020
2023-12-17 11:37:11 +01:00
Jiri Kyjovsky
f0e574daff
copr dist-git: remove pyrpkg patch for SRPM pre-generating check
...
Completes: https://github.com/fedora-copr/copr/pull/2686
Partly resolves: https://github.com/fedora-copr/copr/issues/2317
2023-05-09 20:26:11 +00:00
Pavel Raiskup
5e75fa84c6
copr-dist-git: rebuilding cgit data takes one hour
2023-01-03 13:20:07 +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
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
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
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
Miroslav Suchý
25b43d9a38
copr: restart copr-dist-git service when config change
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
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
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