Jiri Kyjovsky
452211d127
copr: add fedmsg certs from files instead of url
...
In the get_url we hit https://github.com/ansible/ansible/pull/80751 ,
since the ansible version is not 2.16 (it's 2.14), thus manually adding
the certificates instead of getting them from url.
2025-05-24 16:37:39 +02:00
Jiri Kyjovsky
5f9c57b867
copr: permanently add frdmsg certs to copr-fe
2025-05-24 16:21:35 +02:00
Pavel Raiskup
9d6f7c0f6f
copr-fe: tag the pagure-events config task
2025-04-11 10:32:23 +02:00
Jakub Kadlcik
60f990bdb7
copr-fe: use mod_wsgi role
...
Fix https://github.com/fedora-copr/copr/issues/3623
2025-02-27 10:48:12 +01:00
Jakub Kadlcik
b168e806d8
copr-fe-dev: use mod_wsgi role
2025-02-26 10:58:51 +01:00
Jakub Kadlcik
e4e9f1ca3c
copr-fe: use lower shared_buffers value on STG
...
The instance has only 4G of RAM so PostgreSQL fails to start with:
FATAL: could not map anonymous shared memory: Cannot allocate memory
2025-02-14 12:28:47 +01:00
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
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
3c41882bb0
ansiblelint fixes - fqcn[action-core] - shell to ansible.builtin.shell
...
Replaces references to shell: with ansible.builtin.shell
Signed-off-by: Ryan Lerch <rlerch@redhat.com >
2025-01-15 11:29:10 +10:00
Ryan Lerch
25391e95b7
ansiblelint fixes - fqcn[action-core] - package to ansible.builtin.package
...
Replaces many references to package: with ansible.builtin.package
Signed-off-by: Ryan Lerch <rlerch@redhat.com >
2025-01-15 11:28:00 +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
eb1c888537
copr-frontend: give postgres 25% RAM for shared_buffers
2024-12-04 16:21:00 +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
Pavel Raiskup
8abbdbaea5
sopr: credential cleanup: drop an unused task file
2023-11-10 13:45:17 +01:00
Jakub Kadlcik
4f509ac48b
copr-frontend: generate usage treemap every week
2023-05-30 02:25:54 +02:00
Pavel Raiskup
001f60b8bd
copr-fe: prometheus: get the data from nagios more frequently
...
But do not fail immediately if we can not get the results from Nagios.
2023-02-10 14:58:44 +01:00
Pavel Raiskup
6d82fba602
copr-fe: more obvious script name than just "monitoring.py"
...
The cron job doesn't need to "mv" stuff here and there, the script
itself now directly writes to the right file.
2023-02-10 14:46:10 +01:00
Jakub Kadlcik
016572ad54
copr: prefer IPv4 on copr-fe because of timeouting OpenID login
...
See https://github.com/fedora-copr/copr/issues/2418#issuecomment-1341394581
2022-12-09 04:14:41 +01:00
Pavel Raiskup
dc860c9e9d
copr-fe: flag the keytab/service call with krb5 tag
2022-11-23 15:06:17 +01:00
Pavel Raiskup
a1b7c1102a
copr/base, copr-fe: don't restart prometheus exporter all the time
2022-11-23 12:17:34 +01:00
Jakub Kadlcik
dfeb77a361
copr: configure postgres before the 'apply the config comments' task
2022-11-19 15:03:14 +01:00
Pavel Raiskup
a818ccb3cf
copr-frontend: automatically apply the chroot comment changes
2022-06-10 08:21:16 +02:00
Pavel Raiskup
a67723b492
copr-fe: automatically comment chroots from config
2022-06-10 08:10:22 +02:00
Pavel Raiskup
9aa7120fee
frontend: double the connection limit on PostgreSQL server
...
This needs better debugging, but our connection pooling is probably
pretty complicated (each WSGI daemon process can have 15 connections to
DB, 5+10 overflow). And we have _many_ processes nowadays, while the
default connection limit is 100 in PostgreSQL.
2022-05-30 14:39:01 +02:00
Silvie Chlupova
7a88ef0429
copr: restart node_exporter just in case the service file changed
2022-05-04 13:03:35 +02:00
Silvie Chlupova
b951f4ec82
copr: change node_exporter settings according to changes in golang-github-prometheus-node-exporter
2022-04-27 14:47:47 +02:00
Pavel Raiskup
db3df8f747
copr-fe: consume the messages as non-root user
...
And consolidate the two service drop-in config files.
Fixes: https://pagure.io/copr/copr/issue/2036
2022-03-28 10:39:38 +02:00
Silvie Chlupova
1e6c6b911e
copr: add missing dependency, monitoring.py script is using this package
2022-02-17 12:27:28 +01:00
Pavel Raiskup
ebfdb90616
copr-fe: automatically update httpd config with certbot change
2022-02-10 16:31:54 +01:00
Pavel Raiskup
6c4f26f22b
copr-fe-dev: tag the certbot role
2022-02-10 16:28:56 +01:00
Silvie Chlupova
69573e6561
copr: don't ask before overwriting
2022-01-28 13:27:23 +01:00
Silvie Chlupova
23232d6eb7
copr: add renaming of textfile_collector files to a cronjob
2022-01-28 13:19:12 +01:00
Silvie Chlupova
e5c0c0ef3e
copr: add path to monitoring.py script
2022-01-28 12:09:50 +01:00
Silvie Chlupova
e398df9222
copr: use textfile_collector also on devel for now
2022-01-28 11:48:37 +01:00
Silvie Chlupova
53646d2a0f
copr: use textfile_collector only on production
2022-01-28 11:43:11 +01:00
Silvie Chlupova
f871660fcc
copr: add generating prometheus metrics to frontend
2022-01-28 10:20:56 +00:00
Silvie Chlupova
166b814a28
copr: downgrade node_exporter to version 1.2.2
2022-01-25 16:35:07 +01:00
Jakub Kadlcik
612af5e20c
copr: use systemd drop-ins instead of chaning /usr
2022-01-23 23:54:23 +01:00
Jakub Kadlcik
12dd3933cc
copr: automatically restart frontend httpd after failure
2022-01-23 22:55:23 +01:00
Silvie Chlupova
ba86e27e79
copr: add nagios checks for copr servers
2022-01-21 14:18:05 +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
94133e764f
copr-fe: unblock copr-fe playbook, missing quotes
2022-01-05 10:56:31 +01:00
Pavel Raiskup
744523bee4
copr-fe: unblock copr-fe playbook
...
We will have a new variable copr_uptimerobot_api_key_ro soon:
https://pagure.io/fedora-infrastructure/issue/10456
2022-01-05 10:09:06 +01:00
Silvie Chlupova
20132910f3
copr: rename api key variable for getting info about Copr's CDN
2022-01-05 09:57:15 +01:00
Silvie Chlupova
b9fa39f0c8
copr: nagios check for Copr's CDN
...
Relates: https://pagure.io/fedora-infrastructure/issue/10456
2022-01-04 15:28:24 +01:00
Silvie Chlupova
b005356b10
copr: support for node_exporter on frontend (dev and prod)
2021-12-03 15:23:07 +01:00
Silvie Chlupova
6eb77648a4
copr: adding missing package for kerberos auth on frontend
2021-12-01 14:05:07 +01:00