3 ms·
I've been developing something eerily similar myself, which amounts to 41+148 lines of (two) minimalist shellcheck'd bash scripts, providing me with a dead simp
by lloeki 10y ago
I've been developing something eerily similar myself, which amounts to 41+148 lines of (two) minimalist shellcheck'd bash scripts, providing me with a dead simple way to push and apply a unit (or group of units).
This is merely pushing some dumb shell scripts (units) that we write to be idempotent, and "dependency" order is handled by a flat file (groups) that references the scripts (units) or other flat files (groups), running each one in sequence (with silent+logs, or verbosity) in its own shell (so that each unit can't leak env vars to the next one) that sources a very small library of tool shell functions (currently three functions that tally up to 41 lines atop the 189 mentioned above).
The whole thing is so small, simple and approachable that it just flies in the face of puppet/chef/ansible in terms of productivity at our scale and for our problem domain.
I didn't even consider opening it given how small it is but I guess it could turn out to be useful to some nonetheless.
- schizoidboy 10y agoPlease share if you can, I'd like to take a look.