HowTo: Upgrade Salt-Minions and Don’t Lose Them

If you try to upgrade salt-minions from the salt-master, in most cases salt-master would probably lose access to the minions.

If the access is lost, you would have to log in to each host and restart the salt-minion service manually to make it communicate back with the salt-master.

This problem is caused by the salt-minion service that often doesn’t restart after update. (more…)

Salt – Download a File With Unknown Source_Hash

In salt, there is a useful file.managed state that can download files over HTTP/HTTPS and save them on the target system.

Unfortunately for the moment it is not possible to download a file using salt in an normal way without knowing the file’s hash.

If you try to download a file using salt state without source_hash, salt will fail with “Unable to determine upstream hash of source file” error. (more…)