Cloud-init for automating yum security updates

This commit is contained in:
Michele Cereda
2023-02-19 14:16:44 +01:00
parent e6a18992d6
commit 5611e76e36
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#cloud-config
write_files:
- path: /etc/cron.daily/security-updates
permissions: '0755'
content: |
#!/bin/bash
dnf -y upgrade --security --nobest
defer: true

View File

@@ -86,6 +86,9 @@ journalctl -F '_GID'
# Filter logs by path. # Filter logs by path.
journalctl '/usr/bin/bash' journalctl '/usr/bin/bash'
# Filter logs by identifier (like a tag).
journalctl -t 'CROND'
# Display kernel logs only. # Display kernel logs only.
# Works like `dmesg`. # Works like `dmesg`.
journalctl -k journalctl -k