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