Skip to content

Make start action run provisioners if VM is running#294

Merged
legal90 merged 1 commit intoParallels:masterfrom
legal90:run-provision-on-up
Mar 28, 2017
Merged

Make start action run provisioners if VM is running#294
legal90 merged 1 commit intoParallels:masterfrom
legal90:run-provision-on-up

Conversation

@legal90
Copy link
Collaborator

@legal90 legal90 commented Mar 25, 2017

That is a port of the upstream Vagrant commit:
hashicorp/vagrant@e42f346

Previously, there was no one gesture that would start a VM if it was not
running and run the appropriate provisioners regardless of its original
state. vagrant up did nothing if the VM was running, while
vagrant provision did nothing if the VM was not running.

Change the semantics of vagrant up, via the start actions of the providers,
to go through the provisioning logic even if the VM is already running.
The semantics of run: "once" vs run: "always" are respected.

That is a port of the upstream Vagrant commit:
hashicorp/vagrant@e42f346

Previously, there was no one gesture that would start a VM if it was not
running and run the appropriate provisioners regardless of its original
state. `vagrant up` did nothing if the VM was running, while
`vagrant provision` did nothing if the VM was not running.

Change the semantics of `vagrant up`, via the start actions of the providers,
to go through the provisioning logic even if the VM is already running.
The semantics of `run: "once"` vs `run: "always"` are respected.
@legal90 legal90 merged commit 648f40f into Parallels:master Mar 28, 2017
@legal90 legal90 deleted the run-provision-on-up branch March 28, 2017 12:23
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

Successfully merging this pull request may close these issues.

2 participants