voxpupuli / puppet-mongodb

mongodb installation
Apache License 2.0
93 stars 451 forks source link

Provider cleanup #723

Closed stevenpost closed 8 months ago

stevenpost commented 8 months ago

This PR cleans up the provider.

A detailed list of changes:

stevenpost commented 8 months ago

I decided to split this into 2 parts. A 'safe' part, where it is just cleanup (https://github.com/voxpupuli/puppet-mongodb/pull/726), but no real changes in behaviour and another 'unsafe' part with changes in behaviour. The second may provoke a bit more discussion and is this PR.

stevenpost commented 8 months ago

I did some refactoring of the replicaset provider to improve maintainability.

My current test setup and requirements:

Test procedure:

The node will only have itself in the replicaset. The second and third nodes will extend the existing replicaset.

h-haaks commented 8 months ago

Is it possible for you to add your setup in a beaker hosts file under spec/acceptance/nodesets?

stevenpost commented 8 months ago

Is it possible for you to add your setup in a beaker hosts file under spec/acceptance/nodesets?

Not sure how to go about that, but I'll give it a shot.

h-haaks commented 8 months ago

Hmm, this a994a6c1aa2b3d7188ea3854188e622c35bba877 was not what I had in mind :) I was talking about creating a beaker hosts yaml file in the spec/acceptanse/nodesets folder with 3 host. This file could then be used with bundle exec rake beaker

I suppose its better to do this in a separate PR :)

stevenpost commented 8 months ago

Hmm, this a994a6c was not what I had in mind :) I was talking about creating a beaker hosts yaml file in the spec/acceptanse/nodesets folder with 3 host. This file could then be used with bundle exec rake beaker

I suppose its better to do this in a separate PR :)

I moved that commit into a separate PR (https://github.com/voxpupuli/puppet-mongodb/pull/729). I think I understand what you mean, no clue on how to do that, though. Also, I don't see what will be actually tested. Can you expand on that (perhaps in the new PR)?