Skip to content

Molecule generates wrong Vagrantfile when not defining 'provider' #66

Open
@lukas-beumer

Description

As we have different environments, where we need to run molecule tests. We have a curious problem.

We have defined the driver in molecule.yml:

driver:
  name: vagrant

Running our tests, molecule will choose the correct provider automatically. In our case virtualbox or libvirt. In default virtualbox is the default provider, but if it's not installed, libvirt will be chosen (if it's installed). The virtual machines will be setup, but not with the correct settings, if defined (like memory or cpus).

The problem is, that the underlying Vagrantfile will be generated for "virtualbox", even if it's not installed and the virtual machines were setup up for libvirt. Only if I define "libvirt" as provider in the molecule.yml, the file will be generated correctly. So the drive don't use the same driver as vagrant, if not set explicity

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions