KNZLABS :: lab07-time-cron-tuned

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

  1. Set the system timezone to **America/New_York**.
  2. Configure chrony with a primary server `pool.ntp.org` (already done by baseline, but verify).
  3. 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`.
  4. 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`.
  5. Create user `bob` if not present. Create a USER crontab for bob that runs `id > /home/bob/cron-test.log` every 10 minutes.
  6. Install **tuned** if not present. Activate the **virtual-guest** profile (this is a Proxmox VM).
  7. Verify with `tuned-adm active` that virtual-guest is the active profile.

Grading

~/labs/lab07-time-cron-tuned/grader.sh