forked from ansible-community/molecule-vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to force vagrant provider in vagrant up
Currently, vagrant is still choosing the provider to use on its own liking. While it's fine for cases like our CI or people who are fine with default VM configurations, it's not always the case. See: - ansible-community#174 - https://github.com/ansible-community/molecule-vagrant/issues/181 So, add a new configuration setting to call vagrant up with --provider, in order to force the provider to use and lead to an error if it's not usable. The default value is to keep current behaviour to not break things. Signed-off-by: Arnaud Patard <[email protected]>
- Loading branch information
Showing
7 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
molecule_vagrant/test/scenarios/molecule/provider_force/converge.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
- name: Converge | ||
hosts: all | ||
gather_facts: false | ||
become: true | ||
tasks: | ||
- name: Sample task # noqa command-instead-of-shell | ||
ansible.builtin.shell: | ||
cmd: uname | ||
warn: false | ||
changed_when: false |
12 changes: 12 additions & 0 deletions
12
molecule_vagrant/test/scenarios/molecule/provider_force/molecule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
driver: | ||
name: vagrant | ||
provider: | ||
name: vmware | ||
force_provider: true | ||
platforms: | ||
- name: instance | ||
provisioner: | ||
name: ansible |