Commit Graph

203 Commits

Author SHA1 Message Date
Aurélien Bompard
d884a0f8ba Use the combined RabbitMQ CA cert in the clients
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-04-11 15:15:45 +02:00
Michal Konecny
6b0a66cb37 [fedora-messaging] Adding topic_prefix back
Removing the topic_prefix from fedora messaging config files was a bit
premature. So let's put them back in place.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-14 12:40:12 +01:00
Michal Konecny
6428f8f772 Sunset github2fedmsg and fedmsg
This commit is removing all the fedmsg related stuff from ansible
repository.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2025-02-13 10:08:51 +00: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
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
Matěj Grabovský
d193f58f56 retrace: Drop warn argument 2023-05-18 11:22:35 +02:00
Matěj Grabovský
a0d4beab0d retrace: Explicitly add opsys release; improve error handling
- Explicitly register supported CentOS and Fedora releases using
  `faf releaseadd`.
- Ignore "errors" of the "already defined" kind.
2022-02-23 13:04:16 +01:00
Matěj Grabovský
500ed7e0cd retrace: Skip source arch when cleaning up 2022-02-23 13:03:55 +01:00
Matěj Grabovský
54ff2d749d retrace: Fix Fedora repo assignment again
Use the correct variable to loop over this time.
2021-09-16 20:25:09 +00:00
Matěj Grabovský
763612db97 retrace: Fix Fedora repo assignment
* Fix type error (`rs_internal_fedora_vers` is a list of numbers).
* Assign across all supported architectures.
2021-09-14 15:23:06 +02:00
Matěj Grabovský
372f845509 default: Set list to empty instead of None
The `eol_opsys` variable should be set explicitly to the empty list
rather than the implicitly `None` otherwise it causes problems down
the line.
2021-09-13 14:24:26 +00:00
Matěj Grabovský
7a65a7fb82 retrace: Move repo-related tasks to separate file 2021-09-10 15:35:41 +02:00
Matěj Grabovský
48a74d76ad retrace: Parameterise over CentOS versions
Allow for Retrace Server to support multiple versions of CentOS via
the `rs_internal_centos_vers` variable.
2021-09-10 15:35:41 +02:00
Matěj Grabovský
14917002b2 retrace: Simplify template syntax
Remove unnecessary juggling with the `eol_opsys` structure.
2021-09-10 15:35:41 +02:00
Matěj Grabovský
1e5443118e retrace: Drop i386 from list of architectures 2021-09-10 15:35:02 +02:00
Matěj Grabovský
b00a8bc10b retrace: Add /metrics endpoint
Update httpd config to reflect the upstream addition of the /metrics
endpoint for Prometheus stats.
2021-09-09 22:42:04 +00:00
Matěj Grabovský
997508c26c retrace: Ignore errors in FAF packages cleanup
Ignore errors when cleaning up packages after removed releases -- the
releases might already be gone when cleanup-packages is run.

See also 9f64d9661 and c2ed129aa.
2021-06-21 11:52:25 +00:00
Matěj Grabovský
923368d85c retrace: Fix cron job definitions
* Fix line folding syntax. The previous version caused vertical
  whitespace to be included in the output which broke the crontab.
* Rename clean up job so that it doesn't contain any variables.
  Including variables in a name makes it difficult to remove or change
  the job when the variable changes.
* Code style consistency.
2021-06-18 16:03:53 +00:00
Matěj Grabovský
afd82d8a50 retrace: Drop GID modification for now
The management of groups is opaque to me right now and it seems
modifying the GID in this case might be useless or even harmful
so let's drop it for now.
2021-06-17 17:29:32 +00:00
Matěj Grabovský
ac751e42ef retrace: Remove gid setting
`retrace` group is ensured above, gid is set below. We don't need to
duplicate code here.
2021-06-14 11:30:35 +02:00
Matěj Grabovský
cadbae81e1 abrt: Improve retrace user modification flow
We need to stop and restart the httpd service when modifying the retrace
user, otherwise we get errors like "user retrace is currently used by
process <PID>".

Also, factor out some magic values into role variables.
2021-06-10 15:03:44 +00:00
Matěj Grabovský
556a3b39a4 abrt: Update retrace-server role from upstream
* podman: Improve pipeline for getting max subuid
2021-06-10 15:03:44 +00:00
Matěj Grabovský
0505e365da retrace: Use variables for list of Fedora versions 2021-06-08 14:44:16 +02:00
Matěj Grabovský
6b57d23220 retrace: Fix faf db backup job
The job was broken before because the backup directory
(`/srv/faf/db-backup`) might not have existed.

Also, factor out some magic values into variables.
2021-06-08 14:44:16 +02:00
Matěj Grabovský
2ce5a4b91b retrace: Drop devel variable in favour of env
`env` seems to be the prevailing method of specifying production vs.
staging environments across groups and hosts.
2021-06-08 14:44:15 +02:00
Matěj Grabovský
4cfe740fc6 retrace: Improve code style
* Capitalise task names.
* Wrap shell commands in quotes.
* Use folded strings where appropriate.
* Wrap tasks with the same condition in a block.
2021-06-08 14:43:54 +02:00
Matěj Grabovský
9f64d96615 retrace: Manage FAF repositories on staging as well
* Drop the `not devel` flag on FAF repository management tasks.
* Ignore errors when deleting repositories -- they might be gone already
  when repodel is run.
2021-06-08 14:43:54 +02:00
Matěj Grabovský
b708714444 abrt: Fix become directive
`become` only accepts, not the user name which belongs in `become_user`.
2021-06-01 10:36:23 +02:00
Matěj Grabovský
ed06aae6ab abrt: Update list of releases for faf and retrace-server 2021-05-31 08:03:27 +00:00
Matěj Grabovský
8f308ed0d9 abrt: Do not modify retrace home perms 2021-05-31 08:03:27 +00:00
Matěj Grabovský
f0cdefabf5 abrt: Improve code style
* Add names to tasks.
* Split arguments over lines.
2021-05-31 08:03:27 +00:00
Matěj Grabovský
89f150cd8c abrt: Bring roles up to date with upstream 2021-05-31 08:03:27 +00:00
Kevin Fenzi
4fbfe6de26 retrace: oops, its home
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-03-18 12:30:52 -07:00
Kevin Fenzi
ab618af4de retrace: see if moving the homedir setting fixes issues
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-03-18 12:21:50 -07:00
Michal Fabik
c96ab97549 abrt: Update list of Fedora versions for retrace-server 2021-03-02 19:25:54 +00:00
Matěj Grabovský
db96e95ded abrt: Update list of Fedora versions for retrace-server 2021-01-14 14:36:26 +01:00
Matěj Grabovský
3d0eb2f6db abrt: Move retrace user home out of system volume
Change retrace user's home directory to /srv/retrace/home.
2021-01-14 14:36:26 +01:00
Matěj Grabovský
bb53148eed abrt: Add job to clean up unused Podman data 2021-01-14 14:36:25 +01:00
Miroslav Suchý
1326be797a retrace: use podman for retracing
this is submitted to upstream as well
2020-10-14 21:02:00 +02:00
Miroslav Suchý
5d2a203949 retrace: remove remains of f30 2020-09-22 21:02:26 +02:00
Miroslav Suchý
9493e96aa5 retrace: add f33 2020-09-22 21:02:26 +02:00
Miroslav Suchý
f9b3be2676 retrace: run this on prod too 2020-09-22 19:09:54 +02:00
Miroslav Suchý
f752bbdf33 retrace: fix name of task 2020-09-21 23:30:59 +02:00