Giter Club home page Giter Club logo

Comments (5)

wyardley avatar wyardley commented on September 22, 2024 1

That works for me. Is there anyone specific you suggest I should ask for feedback

The #voxpupuli on the Puppet Slack or Vox's IRC channel would probably be good places to get opinions (or help), or you could see if @ekohl wants to weigh in.

I would also definitely suggest getting the integration tests working locally in Docker if at all possible - it'll really help testing / iteration, as well as making sure that your acceptance tests more or less work before you push up. You can spin up the test with BEAKER_destroy=no and exec in after it's done and then use that to try different stuff.

Or do a version check to decide which to use as default?

I think Vox typically tries to keep behavior consistent within the module within reason (vs. tying default behavior to the RMQ version). There's still a quite of bit of work to do anyway if this module is ever going to properly ship with RMQ 4.x by default (or, probably, even support it), so, with the caveat that I haven't used RMQ or Puppet for quite some number of years, I would say use classic as the default, and if / when the default behavior changes, ideally, update the default along with that (or update as another breaking change). But it's not a strong preference from my end.

from puppet-rabbitmq.

jimmybigcommerce avatar jimmybigcommerce commented on September 22, 2024

@wyardley I thought I might take a stab at this. How do you feel about this syntax?

rabbitmq_vhost { 'myvhost':
  ensure   => present,
  metadata => {
    'description'        => 'myvhost description',
    'default_queue_type' => 'quorum',
    'tags'               => 'myvhost tags',
  }
}

from puppet-rabbitmq.

wyardley avatar wyardley commented on September 22, 2024

Maybe get some other feedback too, but my high level thought is that maybe some or all of these should be first class params vs in a metadata hash? in particular, with tags, there seems to be a pattern of having a tags list for some resource types which I think are roughly analagous, e.g.,

tags => ['monitoring', 'tag1'],

Could some of these be actual (optional, if needed), attributes, so you'd end up with something like this?

rabbitmq_vhost { 'myvhost':
  ensure             => present,
  tags               => ['myvhost tags'],
  default_queue_type => 'quorum',
}

from puppet-rabbitmq.

jimmybigcommerce avatar jimmybigcommerce commented on September 22, 2024

That works for me. Is there anyone specific you suggest I should ask for feedback>

from puppet-rabbitmq.

jimmybigcommerce avatar jimmybigcommerce commented on September 22, 2024

The other question is should we make quorum queues the default queue type if not specified. Currently RMQ defaults to Classic Queues, but these will be removed in RMQ 4 so does it make more sense to make it the default in the module now. Or do a version check to decide which to use as default?

from puppet-rabbitmq.

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.