community.rabbitmq icon indicating copy to clipboard operation
community.rabbitmq copied to clipboard

Add RabbitMQ install roles

Open cognifloyd opened this issue 5 years ago • 7 comments

SUMMARY

Add generic roles for installing rabbitmq. They should span simple use-cases (single server) to clustered server. Since this is a collection, we can break the installation down into multiple roles so that users can pick and choose the roles they need.

I'm thinking of something similar to the roles in community.mongodb.

Are there any suggestions on how to break down the set of install roles? Once there is some feedback, I can work on either porting or re-writing some external roles.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

Misc rabbitmq roles

cognifloyd avatar Sep 29 '20 21:09 cognifloyd

One of my goals in putting these generic roles together here, is so that disparate communities can work together on installation roles for common dependencies.

I've heard that the openstack.rabbitmq_server role is a good starting point. So, I'll start looking through that to see how many different roles we might want here.

cognifloyd avatar Sep 29 '20 21:09 cognifloyd

I'm open to this idea. I'm also open to seeing thoughts on what the roles may be. The openstack-ansible role is somewhat monolithic which has its benefits and drawbacks. It might be worthwhile to break things out into multiple roles - for example, one to do initial install, one to configure and perhaps one specially suited to cluster management. Having multiple roles may make each one simpler to maintain... That said, I've not thought it through in much detail.

odyssey4me avatar Nov 07 '20 13:11 odyssey4me

Yes. I want to split this out into multiple roles. We could have one meta role that orchestrates the other roles to ease transition from openstack's role.

I've been busy with a new job, so I'll get back to this very soon. :)

cognifloyd avatar Nov 07 '20 19:11 cognifloyd

So here are the roles I think we could have:

  • community.rabbitmq.rabbitmq_repository: Add the deb/rpm/etc package repository
  • community.rabbitmq.rabbitmq_install: Install rabbitmq itself
  • community.rabbitmq.rabbitmq_config: Setup rabbitmq.conf and optionally add plugins, policies, vhosts, users
  • community.rabbitmq.rabbitmq_cluster: setup primary cluster node and have secondary nodes join

We might end up with another utility role or two, but that's the first stab at splitting it up.

cognifloyd avatar Jul 07 '21 23:07 cognifloyd

@odyssey4me @aitorpazos what do you think of the suggested roles? ^

Andersson007 avatar Aug 31 '21 07:08 Andersson007

The battery included approach sounds good to me:) I'm not sure about the particular modules, that's why we're asking you, folks.

Andersson007 avatar Aug 31 '21 08:08 Andersson007

$newJob "likes ansible" but they've never bothered to use "modules" or "galaxy" or advanced features like that....

I'm trying to modernize things and I'm pretty shocked to see that community.rabbitmq can't configure repos and install the packages for me ...?

DanceMore avatar May 18 '22 00:05 DanceMore