Client Registration with Salt Bundle
The registration method with the Salt bundle is the recommended registration method as long as it covers your use case.
This section explains the advantages and limitations of the current implementation.
The Salt bundle is provided as the venv-salt-minion that consists of Salt, Python, and the Python modules Salt depends on.
Bootstrapping with Web UI still requires Python to be installed on the client.
If you bootstrap new clients, registration with the Salt bundle is the default method.
You can switch existing clients to the Salt bundle method.
If you switch, the salt-minion package and its Python version and the Python modules will stay installed.
The Salt state util.mgr_switch_to_venv_minion is available to switch from salt-minion to venv-salt-minion.
It is recommended to switch to venv-salt-minion in two steps to avoid trouble with shifting processes:
util.mgr_switch_to_venv_minion state to venv-salt-minion-
Apply
util.mgr_switch_to_venv_minionwith no pillar specified first. This will result in the switch tovenv-salt-minionwith copying configuration files etc. It will not clean up the originalsalt-minionconfigurations and its packages. -
Apply
util.mgr_switch_to_venv_minionwithmgr_purge_non_venv_saltset toTrueto removesalt-minionand withmgr_purge_non_venv_salt_filesset toTrueto remove all the files related tosalt-minion. This second step repeats the first step, and then removes the old configuration files and the now obsoletesalt-minionpackage.
On the other hand, it is also possible to avoid installing the Salt bundle and keep using salt-minion instead.
In this case specify one of these options:
-
Execute
mgr-bootstrapwith--no-bundleoption. -
Set
AVOID_VENV_SALT_MINIONto1in the generated bootstrap script. -
For bootstrap state set the
mgr_avoid_venv_salt_minionpillar toTrue.