jmunixusers / cs-vm-build

Ansible playbook for configuring the JMU CS VM provided by the UUG
https://w3.cs.jmu.edu/uug/
MIT License
12 stars 13 forks source link

Use mirror list files for apt #475

Open laurelmay opened 3 years ago

laurelmay commented 3 years ago

This uses the apt lock workaround to replace an ignore_errors on update.

Closes: #446

laurelmay commented 3 years ago

This is in draft until I have a chance to test it.

laurelmay commented 3 years ago

Validated on Ubuntu 20.04 ARM64

ripleymj commented 3 years ago

I think the apt ignore failures was put in to handle when the CS mirror is down/unavailable. I tried putting mirror.cs.jmu.edu in /etc/hosts to simulate a failure, and Ansible refuses to proceed, even though the upstream mirror is a very viable choice.

laurelmay commented 3 years ago

So to be clear, the apt cache is still being properly updated for the upstream Mint/Ubuntu repos? If mirror.cs.jmu.edu was down, would an install still successfully pull from the upstream repo? Basically, are we actually helping things along here or are we delaying a failure?

ripleymj commented 3 years ago

Confirmed, an installation will complete as long as there's a viable mirror. I'd prefer we maintain this behavior.

laurelmay commented 3 years ago

mirror:// mostly works except for a message in mintupdate that the mirror is unreachable. https://github.com/linuxmint/mintupdate/pull/701 exists to try to help with that but we'll likely either need another solution or to just hold off until we can confirm better compatibility with mintupdate.

laurelmay commented 2 years ago

Alright and I think this one is actually ready for review too. Tested by just blocking 134.126.0.0/16. It took a second to timeout but it eventually figured itself out, ignored the "down" mirror, and proceeded. No complaints from mintupdate on config format or anything like that.