
🧂 Useful tips on Salt and related tools. Tweets by @maxim_arnold
Joined August 2017
- Tweets434
- Following28
- Followers567
- Likes977
First experiments with pytest-vagrant to run integration tests on a Windows VM with OpenSSH.
VMs as fixtures are cool!
#saltstack #saltproject
Is there a way to prevent salt-minion from starting up at the end of the package installation on Ubuntu?
Yes, but Ubuntu/Debian need special handling as the salt-bootstrap -X option does nothing:
A bit of context (no need to watch everything, just 1-2 minutes): youtu.be/CubGR8rTy3Y?feature…
There is also "salt-live" tool written in Golang: github.com/kpetremann/salt-e…
By combining it with jq you can filter the output based on event fields! The following command will only show job returns from "state.sls" and "state.apply":
Watching "salt-run state.event" can be overwhelming. Fortunately, you can use regular expressions to watch only for specific event tags:
Wrote a script to get a brief overview of any Salt module
gist.github.com/max-arnold/0…
Salt can handle failures using the "onfail" requisite, but the whole command will still return an error, which can be bad for scripting purposes if you rely on exit codes. The undocumented "onfail_stop" flag can suppress the exit code:








