Linux Fleet Toolkit lft.kosir.info

RHEL 9 fleet tooling · over SSH

Linux Fleet Toolkit

Small, sharp command-line tools for running a RHEL 9 fleet over SSH. Each does one job, writes a report you can hand to anyone, and changes nothing on a host without asking first.

$ git clone https://github.com/vikozs/<tool>

The tools

linux-audit

SSH in, run CIS and system checks, export a fleet audit to Excel.

linux-patch

Staged dnf patching with live re-validation and opt-in serialized reboots.

linux-certs

Find expiring TLS certificates and weak key material, fleet-wide.

linux-users

Audit accounts, sudoers and keys; lock or expire stale accounts. Never deletes.

linux-drift

Capture a baseline, then catch configuration drift after you harden.

linux-firewall

Diff firewalld against a declarative policy and reconcile it, with an SSH guard.

linux-diskspace

Reclaim disk space safely: logs, journald, old kernels, behind approval gates.

linux-motd

Standardize the login banner and warning notices across the fleet.

linux-apply

One executor: turn any tool's plan into actions and run them, re-validating live.

Shared foundation

linux-fleet-common

Every tool is built on the same building blocks: a password/key SSH transport with staged sudo escalation (ssh_exec.py), a formula-injection-safe Excel writer (xlsx_safe.py), and the plan/report JSON schema conventions. Fix a transport quirk once, and it propagates.

github.com/vikozs/linux-fleet-common

What they have in common

Discover, then apply

Read state and write a plan first. Nothing changes until you review it and confirm, per host.

Re-validate live

Before acting, each tool re-checks the host, so a stale plan never forces a change that no longer applies.

A report to hand over

Formatted Excel plus a machine-readable JSON plan. Run artifacts stay out of version control.