-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: Salt provisioning fails when box is already provisioned #6011
Comments
This seems to be a regression as it works fine on 1.7.2:
Notice the different bootstrap options: |
Is this syntax correct?
It seems that |
If that's the case, why not just change the condition to |
I can confirm that this happens only with This issue makes it really difficult to work with Salt, and it would be awesome if it could be patched quickly somehow. Virtualbox is pushing Thanks! |
@howardroark No. I just reverted to 1.7.2. |
As an alternative you can always do...
The Salt bootstrap script runs every time but it is pretty quick when all the deps are in place. |
You need to specify a configuration directory like this:
See bootstrap_salt.sh options... |
My snippet that reproduces this, experimenting with workarounds suggested. config.vm.provision :salt do |salt|
salt.run_highstate = true
salt.verbose = true
end But I still get the following:
|
Alright, due to bug #6029, with Ubuntu Precise 12.04, you need to do the following to work around this issue: config.vm.provision :salt do |salt|
# ...
salt.bootstrap_options = "-F -c /tmp -P" # Vagrant Issues #6011, #6029
# ...
end I haven't tested if |
When I use the bootstrap options solution i keep getting an error that says the F flag does not exist. |
Hi thanks Howard. We did exactly what you said. Removed the preinstalled On Thu, Sep 24, 2015 at 5:34 PM, Howard Roark notifications@github.com
|
After vagrant 1.7.2 the salt provisioner seems to misbehave: hashicorp/vagrant#6011 and hashicorp/vagrant#6029
I believe a fix is in with the latest PR merges. Please verify with Vagrant 1.8 and if the issue persist please reopen. Thanks! |
It's not resolved for me when using Vagrant 1.8.1, same error as in #6029 |
When running
vagrant provision
on a box that has already been provisioned once, it fails with the following error:Looks like the
bootstrap_salt.sh
script requires-c
to be given when running in configuration-only mode (-C
).Minimal Vagrantfile to reproduce:
Vagrant version: 1.7.4
The text was updated successfully, but these errors were encountered: