Skip to content
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

Hosts file change only happens if provisioning is successful #31

Closed
jhogendorn opened this issue Nov 22, 2013 · 4 comments
Closed

Hosts file change only happens if provisioning is successful #31

jhogendorn opened this issue Nov 22, 2013 · 4 comments

Comments

@jhogendorn
Copy link

Bug Description

Running vagrant up with ansible provisioning fails, due to the hosts file not being altered yet. Running vagrant up --provision-with=shell shows the hosts file being updated after the provisioning call.

Expected behaviour

Hostsupdater should execute its hooks prior to provisioning executing.

@ZaneA
Copy link
Contributor

ZaneA commented Nov 24, 2013

I've found that doing a vagrant halt followed by vagrant up works for me, and then I can run vagrant provision as normal, but this isn't ideal. Would be great to see this fixed!

@jhogendorn
Copy link
Author

yes, that would be because vagrant halt followed by vagrant up would not trigger provisioning, which you then trigger manually after the fact with vagrant provision :)

@ricoli
Copy link

ricoli commented Jan 9, 2014

would be great to have a way of having the hosts being updated before provisioning

@cgsmith
Copy link
Collaborator

cgsmith commented Nov 8, 2015

Hosts are not being updated before provisioning in 1.0.0

@cgsmith cgsmith closed this as completed Nov 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants