Lab 07 — Time Sync, cron / at, tuned Profiles
Target: any lab node · Time: 20 minutes · Reboot required: no
Scenario
Configure scheduled jobs at multiple cadences, set the right timezone, and pick a system tuning profile appropriate for the workload.
Tasks
- Set the system timezone to **America/New_York**.
- Configure chrony with a primary server `pool.ntp.org` (already done by baseline, but verify).
- Install **at** if not present. Enable+start `atd`. Schedule a one-shot job that runs `date > /var/log/at-test.log` 1 minute from "now" (when you set it up). Use `at`.
- Create a system-wide cron entry under `/etc/cron.d/` named `rhcsa-job` that runs `echo "$(date)" >> /var/log/rhcsa-cron.log` every 5 minutes as user `root`.
- Create user `bob` if not present. Create a USER crontab for bob that runs `id > /home/bob/cron-test.log` every 10 minutes.
- Install **tuned** if not present. Activate the **virtual-guest** profile (this is a Proxmox VM).
- Verify with `tuned-adm active` that virtual-guest is the active profile.
Grading
~/labs/lab07-time-cron-tuned/grader.sh