Remove aptitude, disable install-recommends - #5793
Conversation
900e23d to
1925917
Compare
rmol
left a comment
There was a problem hiding this comment.
This worked perfectly in staging. There were no unexpected errors in the configuration tests. I was able to submit, then download and decrypt the submission. The background worker processes were functioning.
On hardware I did run into a problem with the order of operations when setting up the FPF apt repo. Since Focal packages are only on apt-test.freedom.press at this point, I had to adjust my working copy before running the playbook, and the current order overwrites the keyring when securedrop-keyring is installed. I appended a commit moving the configuration of the custom key to the end of that playbook. After that the installation completed without error, and the servers again passed manual inspection. The configuration tests do have a number of expected failures, but again none of them are due to these changes.
| apt: | ||
| upgrade: safe | ||
| upgrade: dist | ||
| install_recommends: no |
There was a problem hiding this comment.
Is install_recommends: no necessary here after installing the new 80securedrop.j2 with APT::Install-Recommends "false";?
There was a problem hiding this comment.
It is not, it's completely superfluous. I started by adding install_recommends: no, then realized it would take a lot of edits. So provided that the 80securedrop file gets written before the upgrade, as here, then we can remove the install_recommends parameter.
I'm thinking that deserves its own issue, @rmol, simply because the whole team is about to encounter that same problem during Focal QA. Up to you on how to handle this PR. I'd recommend adding #5793 (comment) and squashing it into the primary commit, then experimenting with d279727 in a separate branch. All that after #5799, of course, so we can trust CI again. |
|
Good call. I've removed the |
We were using "aptitude" in a few places, but it's not really necessary. We can rely on apt-get for the functionality we need. In fact, it's more predictable in terms of server state, especially using "dist-upgrade" and also disabling automatic installation of "recommended" packages.
Status
Ready for review
Description of Changes
We were using "aptitude" in a few places, but it's not really necessary.
We can rely on apt-get for the functionality we need. In fact, it's more
predictable in terms of server state, especially using "dist-upgrade"
and also disabling automatic installation of "recommended" packages.
Testing
Deployment
The disabling-install-recommends functionality is applied to both Xenial & Focal hosts. The setting is mostly useful during initial install, when "recommended" packages will be pulled in.
The goal of this change is to ensure predictable end state on new Focal installs, with a minimum of unnecessary packages.