shellmin

A GNU/Linux server manager written in Crystal.

Shellmin

Thin, High-Performance Linux Fleet Orchestrator for Sysadmins.

Crystal License CI/CD

Shellmin is an agentless, parallel Linux orchestrator written in Crystal. Targets require zero Python runtimes, JVM processes, Node.js dependencies, or persistent agents; Shellmin operates over native SSH using POSIX shell utilities and compiled binaries.

Architectural Highlights

  • Zero Remote Footprint: Executes over SSH inside transient 0700 scratch workspaces removed automatically on exit.
  • Polyglot Logic-as-Files: Write modules as .bash, .sh, .py, .lua, .rb, .pl scripts or native ELF binaries.
  • Symmetric 3-Tier Specialization: Resolves <os>/<version>, <os>/generic, and generic tiers with pre_/post_ lifecycle hooks and an explicit OS Safety Contract.
  • Five-Layer Config Onion: Merges defaults, global config, named profiles, project layers, CLI overrides, and local gopass:///age:// secret decryption.
  • Zero-Trust Controls: Mutex-guarded SHA-256 known_hosts verification, command security auditing, environment key blocks, and sanitized local template facts.
  • Transactional State and ECS Telemetry: Buffers SHELLMIN_STATE_SET and SHELLMIN_STATE_JSON updates for atomic exit-0 commits and streams ECS/OpenTelemetry NDJSON logs.

Documentation and Specifications

Core Modules

Module Status Description Actions
base Implemented Hostname, timezone, baseline CLI tools, hardened sshd_config, sudoers setup, configure, status, teardown
ntp Implemented Chrony NTP time synchronization client and subnet time server setup, configure, status, teardown
user Implemented System users, groups, SSH keys, account locks, and Fedora SELinux logins create, delete, lock, unlock, update, ssh_key_add, ssh_key_remove
package Planned Cross-distro package management via dnf, apt, apk, pacman, emerge install, remove
service Planned Init daemon control across systemd and openrc start, stop, restart, enable, status
selinux Planned Persistent SELinux booleans and semanage fcontext management setbool, fcontext

Quick Start

# 1. Install dependencies and build binary
shards install
make build

# 2. Initialize project workspace and verify inventory
bin/shellmin init
bin/shellmin host list

# 3. Validate specs, linters, and container matrix
make test
make lint
./test/run_matrix.bash

# 4. Run a workload module across targets
bin/shellmin -H web-01 module base setup --timezone=UTC

Contributing

See CONTRIBUTING.rst for TDD workflows, style guidelines, and verification requirements.

License

GNU General Public License v3.0 or later; see LICENSE.

Code of Honor

This project adheres to the Universal Code of Honor.

Repository

shellmin

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 4
  • 7 days ago
  • September 1, 2025
License

GNU General Public License v3.0 or later

Links
Synced at

Mon, 23 Nov 2026 09:43:56 GMT

Languages