35 lines
776 B
Markdown
35 lines
776 B
Markdown
# os automated upgrades
|
|
|
|
Rocky Linux is configured to automatically upgrade. The OS reboot is then
|
|
coordinated with Kubernetes nodes via [Kured](https://kured.dev/).
|
|
|
|
Inspired by [github.com/khuedoan/homelab](https://github.com/khuedoan/homelab/tree/da9afc6de0f27c1d431ae9ecf4f899cb6aedcd15/metal/roles/automatic_upgrade).
|
|
|
|
- [DNF automatic updates (Fedora docs)](https://docs.fedoraproject.org/en-US/quick-docs/autoupdates/)
|
|
|
|
## Setup
|
|
|
|
1. Install
|
|
|
|
```bash
|
|
dnf update -y
|
|
|
|
dnf install -y dnf-automatic dnf-utils
|
|
```
|
|
|
|
2. Configure
|
|
|
|
`/etc/dnf/automatic.conf`:
|
|
|
|
```conf
|
|
[commands]
|
|
upgrade_type = default
|
|
apply_updates = yes
|
|
```
|
|
|
|
3. Start
|
|
|
|
```bash
|
|
systemctl enable dnf-automatic.timer
|
|
systemctl start dnf-automatic.timer
|
|
```
|