fab setup_minon never runs the install_salt.sh script to fully install the salt-minion. This is due to setup_master actually installing the /usr/bin/salt-minion script, even though it passes the -N flag to the bootstrap script (supposedly this doesn't install salt-minon). fab install_salt, when run via fab salt_minion, uses salt-minion --version to decide whether or not to install, which returns a version because it's already installed by the time you're attempting to install salt-minion.
I'm not sure my proposed change is the best solution, but it worked for me today. I find it odd that salt-minion gets installed when you tell it not to, but maybe I don't fully understand the bootstrap script.
fab setup_minon
never runs theinstall_salt.sh
script to fully install thesalt-minion
. This is due tosetup_master
actually installing the/usr/bin/salt-minion
script, even though it passes the -N flag to the bootstrap script (supposedly this doesn't install salt-minon).fab install_salt
, when run viafab salt_minion
, usessalt-minion --version
to decide whether or not to install, which returns a version because it's already installed by the time you're attempting to installsalt-minion
.I'm not sure my proposed change is the best solution, but it worked for me today. I find it odd that salt-minion gets installed when you tell it not to, but maybe I don't fully understand the bootstrap script.