-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regular maintenance updates for Linux VMs #1885
Regular maintenance updates for Linux VMs #1885
Conversation
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
Co-authored-by: James Robinson <james.em.robinson@gmail.com>
If the only usage of the SREMaintenanceComponent is in workspaces and the SREMaintenanceComponent only contains a single resource (namely the If there's a good reason to keep them separate (e.g. because we're planning to add other VMs later) then let's discuss that here. |
data_safe_haven/infrastructure/components/composite/virtual_machine.py
Outdated
Show resolved
Hide resolved
data_safe_haven/infrastructure/components/composite/virtual_machine.py
Outdated
Show resolved
Hide resolved
Do you mean just fold the maintenance component into |
Yes.
the second option here only applies if we're sure that everything that might want to use the |
Agreed
No, can't think of any either. Leaning towards this option. Easy to put it back to the current style if it makes sense in the future. |
…chine.py Co-authored-by: James Robinson <james.em.robinson@gmail.com>
…chine.py Co-authored-by: James Robinson <james.em.robinson@gmail.com>
…chine.py Co-authored-by: James Robinson <james.em.robinson@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I don't have particularly strong opinions about moving the MaintenanceConfiguration
to workspaces.py
.
On one hand, that would mean less boiler plate.
On the other, it would make one file longer and remove the nice modular feel it has and would be more scalable if we need multiple instances or to register other objects to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
✅ Checklist
Enable foobar integration
rather than515 foobar
).develop
.'[WIP]'
to the title if needed (if you're not yet ready to merge).This PR adds regular OS updates for Linux VMs in SREs.
It creates a maintenance configuration in the
workspaces
resource group for the SRE, and then associates Linux VMs in that group with the configuration.It is set up to install any critical or security patches daily, at 1am.
Also fixes a bug preventing deployment of multiple workspaces.
🌂 Related issues
Closes #1889
🔬 Tests
Succesfully deployed an SRE