Short Description
Every call to vagrant provision reinstalls the salt minion on the Windows guest.
Versions
Vagrant version: 2.2.2
Host: Ubuntu 18.04
Guest: Windows Server 2012 R2 Standard
Possible Cause
The Salt provisioner uses the which command to determine if necessary binaries are installed in order to determine if the bootstrap script should be executed. This is not available for Windows.
Results of a provision with Salt already installed
Copying salt minion config to vm.
Checking if C:\salt\salt-minion.bat is installed
C:\salt\salt-minion.bat was not found.
Checking if C:\salt\salt-call.bat is installed
C:\salt\salt-call.bat was not found.
Using Bootstrap Options:
Bootstrapping Salt... (this may take a while)
Service defaulting to run.
Downloading Salt minion installer Salt-Minion-2017.7.1-Py2-AMD64-Setup.exe
Installing Salt minion...
Short Description Every call to
vagrant provision
reinstalls the salt minion on the Windows guest.Versions Vagrant version: 2.2.2 Host: Ubuntu 18.04 Guest: Windows Server 2012 R2 Standard
Possible Cause The Salt provisioner uses the
which
command to determine if necessary binaries are installed in order to determine if the bootstrap script should be executed. This is not available for Windows.https://github.com/hashicorp/vagrant/blob/a4d5ee6ac1aa88d827fc05e2ba85a90bc40ba004/plugins/provisioners/salt/provisioner.rb#L80
Vagrantfile
Results of a provision with Salt already installed