-
-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BREAKING: manage_repos is now repos_ensure (default false), version is now unused, switch to RabbitMQ's "packagecloud" repos #493
BREAKING: manage_repos is now repos_ensure (default false), version is now unused, switch to RabbitMQ's "packagecloud" repos #493
Conversation
Missed some of the unit tests locally, will work on those as well. |
Hopefully SLES support would still work (just not in the case of $repos_ensure), since there is an available package: https://software.opensuse.org/package/rabbitmq-server |
Looks like there is a conflict. Sounds like a 6.0.0 would be timely, so I'll give this a review and plan on merging soon :) |
README.md
Outdated
@@ -323,7 +306,7 @@ Boolean, set to true to log LDAP auth. | |||
|
|||
####`manage_repos` | |||
|
|||
Boolean, whether or not to manage package repositories. | |||
This option is deprecated in favor of repos_ensure, and is no longer honored. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for deprecated parameters we can just remove the docs and comment in the code that it is deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. I think @DavidS had asked me to put warnings in the code; do you want those still left in (if you try to call the deprecated parameters)?
@hunner: Thanks! I tried to leave it better than I found it, but there's still room for improvement, so let me know if there's stuff I can do to make this follow best practices better. I think the README now addresses your comments, let me know what you think about the gpg_key variable though. Would love it if you have time to review the changes proposed in https://tickets.puppetlabs.com/browse/MODULES-3679 as well, and suggest whether or not using composite namevars will be feasible / practical along with prefetching. Created a PR (just to have it to reference; it's still not yet in working state or passing tests) in #504 |
ef4e517
to
5c620e3
Compare
Rebased against master and squashed my earlier commits into 1. @bastelfreak is going to suggest some changes (in a separate PR) that will restore Archlinux support. It sounds like this is low effort, as Rabbitmq is available via its package manager already. |
0df9f2e
to
310895e
Compare
Ok, took a stab at getting this in at least semi-presentable shape, even though my memory is a little fuzzy on some of the details. It's now passing spec and acceptance tests (though there is no acceptance test for the However, taking out rabbitmq_version in params might break the logic in the commit below, I will try to work around it, but I think it could cause some weird issues unless a dependency is forced (rabbitmq::install is ordered before ::rabbitmq::config, so maybe there won't be an issue?) |
5658769
to
bca39ef
Compare
246d2ae
to
36ca029
Compare
36ca029
to
df2e4fe
Compare
…5 support. Remove tests for ancient RMQ version. Rework how $package_gpg_key is used. Remove some checks that tie to deprecated params. Default $repos_ensure to false. Switch to integers for ports and other numeric values
df2e4fe
to
6724952
Compare
One difference is that now that repos aren't managed by default, the rmq version on Ubuntu (at least the Ubuntu 14 used in spec tests) will be lower, I think this is why one test I had that was testing if the clustering component is listening on port 25672 fails now with these changes. However, everything else works, and it's listening on 55672, so I just commented out the tests with xit for now. |
…ion-fixes repos and version fixes
…ion-fixes repos and version fixes
Note: This is a pretty big changeset. I will get it passing automated tests, but I'd love code review, and would love for folks to do some more manual testing.
This is some basic cleanup, and to drop support for installing brute force based on hard-coded version (i.e., only support using the official RabbitMQ packages via the packagecloud repo (for RHEL / CentOS), and continue supporting the Debian repo directly on the rabbitmq site).
I'm not sure if having
(in
repo/apt.pp
, and the equivalent inrepo/rhel.pp
) is better than just using$package_gpg_key
from the main scope; is there any reason not to do it that way?Should probably do a version bump for this, but thus far have not touched the CHANGELOG or the version in metdata.json. If this gets merged in, maybe someone in the modules team could do that?
SLES support is untested, and may be broken now that we're not directly grabbing RPM for $version from the Rabbitmq site. Would appreciate suggestions / ideas about how to properly support this using the
Dropped Archlinux support.
Left in the OpenBSD stuff, which I believe should work without explicit version, but have not tested.