molecule-vagrant icon indicating copy to clipboard operation
molecule-vagrant copied to clipboard

💖 vagrant plugin welcomes new contributors and maintainers

Open ssbarnea opened this issue 5 years ago • 18 comments

I am unable to maintain this driver as I am not using it, so I am looking for maintainers.

I can keep providing support for integration with molecule itself but not around vagrant bits.

I would work noting that the top priority would be to setup CI jobs.

ssbarnea avatar Jan 14 '20 10:01 ssbarnea

@ssbarnea could i give a hand for this driver?

I am now using it for all of my Ansible roles, in Travis CI + Libvirt + KVM, see:

  • https://travis-ci.org/alvistack/ansible-role-bootstrap/jobs/649746955
  • https://github.com/alvistack/ansible-role-bootstrap/blob/7f45e943c34ec8a170c145b662bda21c9ac4c9e4/.travis.yml
  • https://github.com/alvistack/ansible-role-bootstrap/blob/7f45e943c34ec8a170c145b662bda21c9ac4c9e4/molecule/ubuntu-18.04/molecule.yml

hswong3i avatar Feb 13 '20 08:02 hswong3i

I also would say CI jobs would be a show stopper for anyone trying to help with this (I also think about helping out...). I was already loosely involved in https://github.com/ansible-community/molecule/pull/1600#issuecomment-445828834 and tried to create an example pipeline using a free CI platform to be able to create VagrantBoxes (with VirtualBox) in https://github.com/jonashackt/vagrant-ansible-on-appveyor - but sadly failed back then.

Now with the Molecule v3 release I stepped back into the game, since there was some development at AppVeyor since then and there seems to be a possiblity right now, to use Vagrant with them. Therefor I filed an issue https://help.appveyor.com/discussions/questions/46774-nested-virtualization-needed-for-opensource-projects-vt-x-is-not-available-verr_vmx_no_vmx - let's see, if they will help here. Will come back, if there's any progress. I don't really see other free options aside from AppVeyor, everything else needs to be payed for...

jonashackt avatar Feb 24 '20 11:02 jonashackt

Ah @hswong3i I misread your solution, sounds great. Will look into it.

jonashackt avatar Feb 24 '20 13:02 jonashackt

Wow @hswong3i this really works... Vagrant + libvrt Plugin + libvrt + KVM on Travis... nice - full example here https://github.com/jonashackt/vagrant-travisci-libvrt. So this could be also a way of creating the CI jobs for Molecule 👍

jonashackt avatar Feb 24 '20 16:02 jonashackt

@jonashackt, CirrusCI also offers free virtualization: https://cirrus-ci.org/guide/linux/#kvm-enabled-privileged-containers

I'm testing my Ansible roles there.

sio avatar Feb 24 '20 19:02 sio

I welcome anyone to join this. You will need to document for each CI how to setup Vagrant and assure that it is working. Installing vagrant does not mean it will be able to start a VM.

I am currently working on fixing this for Zuul CI, which is what we use for testing.

ssbarnea avatar Feb 24 '20 19:02 ssbarnea

CI is working, feel free to start creating PR now, or reviewing existing ones.

Be sure you use the review option when doing reviews, when approved we should see a gray "v" check. Mentioning because the review option is well hidden in the UI.

ssbarnea avatar Feb 25 '20 12:02 ssbarnea

@ssbarnea thank you very much and confirmed after #10 get committed with https://github.com/ansible-community/molecule-vagrant/commit/78582f9f7ead498575f0acc12ace7b9e187306ad, no more hacky dirty workaround is required for:

  • molecule/*/create.yml
  • molecule/*/prepare.yml
  • molecule/*/destroy.yml
  • molecule/*/library/molecule_vagrant.py

My complete example for migrate from Molecule 2.22.0 to 3.0.2 goes here:

Enjoy ;-)

hswong3i avatar Feb 25 '20 14:02 hswong3i

Thank you so much, @hswong3i - I'm finally able to use Molecule with Vagrant again! 🎉

stdevel avatar Feb 25 '20 19:02 stdevel

@ssbarnea thank you very much for v0.2, example above updated, too ;-)

hswong3i avatar Feb 26 '20 00:02 hswong3i

@jonashackt For Travis CI + Vagrant + VirtualBox we may need --nested-hw-virt, which natively enabled for Libvirt + KVM

See https://www.virtualbox.org/manual/ch09.html#nested-virt

hswong3i avatar Feb 26 '20 07:02 hswong3i

I've said it on IRC but it's a good idea to say it here too. If help is still needed/wanted, I can try helping in maintaining the vagrant molecule plugin.

apatard avatar Mar 02 '20 09:03 apatard

Please watch the project and do reviews on issues or PRs. Even ping me directly here or on irc, after this I will also give you more privileges.

It would also be very useful if you can find a way to fix the vagrant installation on the broken platforms (so we can remove the voting: false)

ssbarnea avatar Mar 02 '20 17:03 ssbarnea

Thanks @hswong3i for the example. Wish this could be added in the doc.

rgarrigue avatar Mar 16 '20 09:03 rgarrigue

I invited few people but I will keep the ticket open. If you want to help, just add a comment here and mention my name. I will send you an invite so you can start doing triage, reviews.

ssbarnea avatar Apr 24 '20 08:04 ssbarnea

this code is becoming very important to our team and will be for years I believe, so I'll add my name to the list of people that can help

karcaw avatar Apr 30 '20 17:04 karcaw

Done, invited all. If I missed anyone mention me in a comment.

Please watch the project for PRs and review them, only when it gets reviews add the "gate" label to tell CI to merge it. There is not manual merge.

ssbarnea avatar May 01 '20 17:05 ssbarnea

@kikitux is this something for you? @ssbarnea

bbaassssiiee avatar Jun 04 '20 20:06 bbaassssiiee