-
-
Notifications
You must be signed in to change notification settings - Fork 500
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: Enable packagecloud repos by default #926
base: master
Are you sure you want to change the base?
Conversation
Hi @kajinamit sorry for the delay in response. Eventually we'll want this to be one squashed commit, ideally. |
Thanks for the pointer ! I regenerated reference.md and squashed that change into the base one which changed the default/parameter description. |
Hi @kajinamit |
@kajinamit also, if you haven't already found it:
then you can exec into the docker process and try applying the manifest(s) in For now, at least, you may need an older Ruby version (not sure if that'll be fixed after modulesync gets updated). Works for me on a machine w/ Ruby 2.6.x @bastelfreak dropped support for Puppet 6, and I'm working on adding support for newer OS versions (and deprecating old ones) in #928, so you may want to keep an eye on that. |
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.
@kajinamit: Thanks for your hard work on this so far. Looking at this locally, I think the issue is that repos_ensure
has to be set to true
in data/common.yaml
as well. With that updated, the tests pass. I can take a pass at the acceptance tests locally too, but I think we can make a pass at adding this in along with the other breaking changes, possibly 🎉
Let me know if you have time to fix it up; otherwise, I can try to do the remaining work and make a new PR or PR your branch.
We may have some conflicts with some spec related changes in #932 if that's merged first.
But as of now, with the following tweaks (docs fix is just for completeness) for me locally, at least for the unit tests:
--- a/data/common.yaml
+++ b/data/common.yaml
@@ -31,7 +31,7 @@ rabbitmq::repo_gpg_key: ~
rabbitmq::package_name: 'rabbitmq'
rabbitmq::package_source: ~
rabbitmq::package_provider: ~
-rabbitmq::repos_ensure: false
+rabbitmq::repos_ensure: true
rabbitmq::manage_python: true
rabbitmq::python_package: 'python'
rabbitmq::rabbitmq_user: 'rabbitmq'
diff --git a/examples/full.pp b/examples/full.pp
index 9e28ed7..65a9b3a 100644
--- a/examples/full.pp
+++ b/examples/full.pp
@@ -1,6 +1,5 @@
class { 'rabbitmq':
delete_guest_user => true,
- repos_ensure => true,
package_apt_pin => 900,
}
spec/acceptance/class_spec.rb
Outdated
@@ -15,11 +15,8 @@ | |||
context 'default class inclusion' do | |||
let(:pp) do | |||
<<-EOS | |||
class { 'erlang': repo_source => 'packagecloud' } -> |
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.
https://github.com/voxpupuli/puppet-erlang/blob/master/REFERENCE.md#repo_source This is not valid on all OSes (and I think may be default anyway). I'm testing taking it out and leaving the default here.
I have the regular specs (the unit tests) for this passing, and conflicts resolved (can make a PR against your branch or send a diff if it helps), but with current versions of stuff getting installed (3.11.x) and current erlang (25.0.x), Will poke around a little, but we might need to pin to older versions, or hold off on this until we can also set a new minimum supported version of rabbitmq in the module, and adjust the module itself to work with newer rmq. I'm happy to provide some more guidance - guessing we'll probably get another breaking release out first. The good news is that I think some of these will help make the other work on getting this done a little easier. |
kajinamit#1 has some additional fixes |
5a0bbe7
to
ba197d9
Compare
Sorry for my late response. Recent change in my org made it a bit challenging to take time for some work in Puppet modules. Thanks a lot @wyardley. I've pulled your fix commit into this PR. |
So far, I’m still seeing Erlang segfault on start with the rmq and Erlang version that get pulled down. I tried to get a useful backtrace from the core dump, and couldn’t. With the rmq version jumping so much, may also be some config stuff to fix. But right now, even just running |
9a5a7ed
to
15e539d
Compare
This re-enables repos_ensure by default so that the newer packages hosted in packagecloud are installed.
Now we install rabbitmq from packagecloud by default. Install erlang from the same source so that we use the latest versions available for both rabbitmq and erlang.
Looks like this is getting closer @kajinamit? Seems like the debian / ubuntu failures mostly have to do with Have you been able to get the acceptance tests working locally? |
Hi @kajinamit - hopefully some of the recent changes will streamline things a bit and make the tests less brittle if you've got more time to play with this. Integration tests in Docker are also working for me again, at least for some platforms. |
Pull Request (PR) description
The packagecloud repo was enabled by default in old releases but it was disabled by #493 .
Now we need this repo to support CentOS 8 , and we discussed this behavior and agreed this should be enabled by default.
Further details can be found in #900 .
This Pull Request (PR) fixes the following issues
N/A