ansible/playbooks
Jeremy Cline 0571feb2ce fedora-image-uploader: deploy as multiple containers
In the beginning, this just handled Azure images. Now it does Azure,
AWS, GCP, and containers. Currently, it processes images serially, which
is mostly okay. However, it does mean that whatever service is handled
last has to wait for all the others to succeed before it starts, and it
also means if any of the handlers for their respective platform fail, it
retries *all* the images again. For most things this is a no-op (or a
few inexpensive calls), but it does have to re-download the image from
Koji to checksum it.

This adds an AMQP message queue for each content type we handle, and
produces a fedora-messaging config for each content type. The deployment
is now made up of 4 containers: azure-image-uploader,
aws-image-uploader, container-image-uploader, and
google-cloud-image-uploader. They only differ in the secrets injected
into them and the fedora-messaging config file they use. The end result
is that images should be available faster and its more resilient to
remote services being down.

Finally, it's worth noting that this bumps the warning threshold for
queue sizes. It can take some services (Azure and AWS) upwards of 30
minutes to replicate the images around the world, and since we subscribe
to _any_ compose status changes, it's not unreasonable for 5-10 messages
to stack up when we hit a compose change that is "FINISHED" with images.

Signed-off-by: Jeremy Cline <jeremycline@linux.microsoft.com>
2025-04-29 18:25:08 +00:00
..
groups ipsilon: use correct centos stg ipsilon host for hbac rule 2025-04-24 09:26:09 -07:00
hosts motd generic template added 2025-01-28 01:10:14 +00:00
include proxies: drop caiapi 2025-03-28 18:11:11 +00:00
manual Add Fedora version variable to the playbook 2025-04-28 12:18:58 +02:00
openshift-apps fedora-image-uploader: deploy as multiple containers 2025-04-29 18:25:08 +00:00
check-for-nonvirt-updates.yml Fix name[casing] ansible-lint issues 2025-01-14 20:20:07 +10:00
check-for-updates.yml ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command 2025-01-15 11:26:47 +10:00
check-host.yml Actually move to nftables for any host with nftables: true (nothing atm). 2025-03-03 21:20:30 +00:00
checks_log_failed_services.yml ansiblelint fixes - fqcn[action-core] - shell to ansible.builtin.shell 2025-01-15 11:29:10 +10:00
clear_memcached.yml ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command 2025-01-15 11:26:47 +10:00
clear_varnish.yml ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command 2025-01-15 11:26:47 +10:00
death_to_postfix.yml ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command 2025-01-15 11:26:47 +10:00
destroy_virt_inst.yml ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command 2025-01-15 11:26:47 +10:00
host_reboot.yml host_reboot: move to same pattern as vhost_reboot 2025-01-29 09:21:46 -08:00
host_update.yml host_update: sync with vhost update and fix for modern systems 2025-01-29 09:19:23 -08:00
list-vms-per-host.yml ansiblelint fixes - fqcn[action-core] - template to ansible.builtin.template 2025-01-15 11:30:29 +10:00
rdiff-backup.yml Fix name[casing] ansible-lint issues 2025-01-14 20:20:07 +10:00
restart_when_failed.yml ansiblelint fixes - fqcn[action-core] - shell to ansible.builtin.shell 2025-01-15 11:29:10 +10:00
rkhunter_only.yml ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command 2025-01-15 11:26:47 +10:00
rkhunter_update.yml ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command 2025-01-15 11:26:47 +10:00
set_root_auth_keys.yml [yaml-lint] fix yamllint errors and warnings on plabooks 2024-11-25 19:04:25 +10:00
ssh_host_keys.yml [yaml-lint] fix yamllint errors and warnings on plabooks 2024-11-25 19:04:25 +10:00
universe_update.yml ansiblelint fixes - fqcn[action-core] - package to ansible.builtin.package 2025-01-15 11:28:00 +10:00
update-proxy-dns.yml ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command 2025-01-15 11:26:47 +10:00
update_dns.yml ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command 2025-01-15 11:26:47 +10:00
update_ticketkey.yml Use first uppercase letter for all handlers 2025-02-10 20:31:49 +00:00
vhost_halt_guests.yml ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command 2025-01-15 11:26:47 +10:00
vhost_poweroff.yml ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command 2025-01-15 11:26:47 +10:00
vhost_reboot.yml Add regexp to drop spaces from hostnames in prompts, for add_host. 2025-03-25 20:36:02 -04:00
vhost_update.yml Add regexp to drop spaces from hostnames in prompts, for add_host. 2025-03-25 20:36:02 -04:00
vhost_update_reboot.yml [yaml-lint] fix yamllint errors and warnings on plabooks 2024-11-25 19:04:25 +10:00