mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Cloud-init for automating yum security updates
This commit is contained in:
9
cloud-init/yum.automate-security-updates.yaml
Normal file
9
cloud-init/yum.automate-security-updates.yaml
Normal 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
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user