debian-forge-composer/templates
Ondřej Budai 1b169a150c packer: don't deregister old AMIs
Imagine this scenario: the packer job is ran, an AMI gets created.
We configure our deployment to use this AMI. Then, someone retries the
packer job. Since we have force_deregister=true, this will not only
create a new AMI, but also remove the old one (because it has the same
name). Thus, our deployment will get broken, because the source AMI
no longer exists. This means that the ASG cannot replace any broken
instances, and the secure instance feature gets absolutely broken
because it cannot spawn new secure instances (they "inherit" the AMI
ID from their parents).

Let's remove force_deregister=true, so the AMI never gets replaced.
This might cause some pipelines to start failing because they are
rerunning the packer job for same commit (the GA pipeline currently).
Let's fix those then, rerunning the packer job is just confusing.

If this causes some unexpected issues, we can always resort to using
unique AMI names (by appending a timestamp to their name), but having
multiple AMIs with different names, but same tags will cause our
terraform configuration to be reapplied everytime there's a rerun,
which is also not great.
2024-10-21 11:48:02 +02:00
..
dashboards templates/dashboards: human readable job duration targets 2024-07-04 12:46:19 +02:00
openshift templates: fix apiVersion 2024-10-03 16:27:21 +02:00
packer packer: don't deregister old AMIs 2024-10-21 11:48:02 +02:00
.kube-linter-config.yml .github: Add kube-linter check 2022-05-27 15:09:42 +02:00
composer.yml templates/openshift: move openshift templates to separate folder 2024-04-25 17:32:21 +02:00
README.md templates: Composer OSD template 2021-10-05 16:45:55 +02:00

Openshift deploy templates