Coder Social home page Coder Social logo

Comments (6)

retr0h avatar retr0h commented on July 17, 2024 1

Furthermore, defining multiple instances to test a role on different platforms is not an intended Molecule's usage pattern?

I now remember why we took this approach. When we wrote molecule, we were solving a use case specific to us. We wanted the ability to perform multi-node testing. Kitchen didn't support this, however, it did support multi-platform. We implemented multi-host on a single platform. Once we decided to implement multi-platform, it was implemented against a single-platform at a time. I'm working on a rewrite of molecules config, which will likely address this in the future. However, thats a couple months away from landing.

from molecule.

identifystation avatar identifystation commented on July 17, 2024

@tjanez At the moment we don't have a mechanism to do multiple platforms in a single converge. The entire thing is built around the idea that you're converging one or multiple instances of the same platform. For our needs, we do these as separate steps, though I could definitely see how it would be convenient to test multiple platforms in a single shot.

from molecule.

tjanez avatar tjanez commented on July 17, 2024

@abrown-sg, thanks for your explanation.

So, if I understand current Molecule's design correctly, instances are meant to be used to test how a role behaves under different configurations/states of the currently chosen platform?
Furthermore, defining multiple instances to test a role on different platforms is not an intended Molecule's usage pattern?

from molecule.

butla avatar butla commented on July 17, 2024

@retr0h Hey, so is there any progress on that?

FYI my current case (maybe I'll change this up) looks like this:

  • one Ansible role that's supposed to work on many OSes
  • I'm using Vagrant as the driver
  • CentOS7 should use virtualbox provider
  • Ubuntu 16 should use the lxc provider

from molecule.

retr0h avatar retr0h commented on July 17, 2024

Molecule v2 supports scenarios. Your scenarios can be written for each distro and driver.

from molecule.

butla avatar butla commented on July 17, 2024

@retr0h Thanks!

from molecule.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.