Enable unattended-upgrades #598

Merged
raucao merged 9 commits from bugfix/499-unattended_upgrades into master 2025-09-10 08:47:52 +00:00
Owner

We were missing a positive value on
["apt"]["unattended_upgrades"]["enable"] to enable it.

This is running on akkounts-1, I have executed unattended-upgrades --dry-run after a Chef run. Now we can wait for the actual run tomorrow.

closes #499

We were missing a positive value on `["apt"]["unattended_upgrades"]["enable"]` to enable it. This is running on akkounts-1, I have executed `unattended-upgrades --dry-run` after a Chef run. Now we can wait for the actual run tomorrow. closes #499
greg added the
kredits-1
ops
bug
labels 2025-05-31 14:49:47 +00:00
greg added 1 commit 2025-05-31 14:49:47 +00:00
We were missing a positive value on
`["apt"]["unattended_upgrades"]["enable"]` to enable it.

Refs #499
greg requested review from raucao 2025-05-31 14:49:47 +00:00
greg added this to the 2025 project 2025-05-31 14:49:47 +00:00
greg added 1 commit 2025-05-31 15:00:43 +00:00
Owner

@greg Did it run OK?

@greg Did it run OK?
Author
Owner

It ran successfully but we did not get email notifications, I'm looking into it before we can merge it

It ran successfully but we did not get email notifications, I'm looking into it before we can merge it
Author
Owner

OK I got it, I had forgotten to run Chef again after fixing the config to send email notifications. So the next upgrade should send us an email now

OK I got it, I had forgotten to run Chef again after fixing the config to send email notifications. So the next upgrade should send us an email now
greg added 2 commits 2025-07-15 08:14:57 +00:00
Mailgun was rejecting the email as it did not have a valid sender
(the default, which is something like root@akkounts-1). Unattended
upgrades have been working properly, now we will start getting emails
next time an upgrade is done on akkounts-1.
Author
Owner

I checked again, found an issue that prevented the emails from being sent. I fixed what should be the last issue, now we should get emails next time there's a package upgrade on akkounts-1

I checked again, found an issue that prevented the emails from being sent. I fixed what should be the last issue, now we should get emails next time there's a package upgrade on akkounts-1
Owner

Any emails yet? 🤔

Any emails yet? 🤔
Author
Owner

Any emails yet? 🤔

There hasn't been any package update since I fixed the email config, I'll keep checking

> Any emails yet? 🤔 There hasn't been any package update since I fixed the email config, I'll keep checking
greg added 5 commits 2025-09-09 13:30:23 +00:00
Author
Owner

I fixed the issue that was preventing updates from installing in cc40c0db19 (because the Ubuntu version running on akkounts-1 needs ESM). I also ran into an issue with the postfix config, due to an old issue in the Chef cookbook. I forked it to our Gitea and also created a PR upstream: https://github.com/sous-chefs/postfix/pull/213

Unattended upgrades have been installed on akkounts-1, next I'll resend the email, since the postfix config was still broken when the first successful upgrade ran

I fixed the issue that was preventing updates from installing in cc40c0db198c7555af1b7abe625639c27f77a804 (because the Ubuntu version running on akkounts-1 needs ESM). I also ran into an issue with the postfix config, due to an old issue in the Chef cookbook. I forked it to our Gitea and also created a PR upstream: https://github.com/sous-chefs/postfix/pull/213 Unattended upgrades have been installed on akkounts-1, next I'll resend the email, since the postfix config was still broken when the first successful upgrade ran
Author
Owner

Resent the failed email notification and created an email rule so the next one should arrive in the right folder, I think this one should be good to review

Resent the failed email notification and created an email rule so the next one should arrive in the right folder, I think this one should be good to review
Author
Owner

This morning an unattended upgrade was performed on akkounts-1, and the email was sent and filtered to the right folder.

This morning an unattended upgrade was performed on akkounts-1, and the email was sent and filtered to the right folder.
Owner

Great!

Great!
raucao approved these changes 2025-09-10 08:47:27 +00:00
raucao left a comment
Owner
No description provided.
raucao merged commit dbf0e50abf into master 2025-09-10 08:47:52 +00:00
raucao deleted branch bugfix/499-unattended_upgrades 2025-09-10 08:47:53 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kosmos/chef#598
No description provided.