draft: RabbitMQ 4 support#1075
Conversation
| ## Zero dependency Erlang RPM | ||
| ## | ||
|
|
||
| [modern-erlang] |
There was a problem hiding this comment.
Please use yumrepo resources instead. That's how we usually manage repositories. That makes it way easier to customize the different attributes.
There was a problem hiding this comment.
There is a problem, in yumrepo "Continuation lines that yum supports (for the baseurl, for example) are not supported.", and the .repo files contains newlines in baseurl
There was a problem hiding this comment.
I think you can provide a string with multiple URLs and use whitespace as delimiter https://github.com/puppetlabs/puppetlabs-yumrepo_core/blob/main/lib/puppet/type/yumrepo.rb#L81
There was a problem hiding this comment.
I was checking https://forge.puppet.com/modules/puppetlabs/yumrepo_core/readme and I have a doubt, how could I place multiple repositories in a single file with yumrepo?
There was a problem hiding this comment.
oh I think that's still not supported. just make multiple files? but you can have multiple baseurls per repo I think.
There was a problem hiding this comment.
Idk if it's the same, see the original .repo here, the GPG keys are different
There was a problem hiding this comment.
yumrepo { 'modern-erlang':
baseurl => "https://yum1.rabbitmq.com/erlang/el/${facts['os']['release']['major']}/\${basearch} https://yum2.rabbitmq.com/erlang/el/${facts['os']['release']['major']}/\${basearch}",
repo_gpgcheck => '1',
enabled => '1',
gpgkey => $erlang_repo_gpg_key,
gpgcheck => '1',
sslverify => '1',
sslcacert => '/etc/pki/tls/certs/ca-bundle.crt',
metadata_expire => '300',
payload_gpgcheck => '1',
}
results in Validate method failed for class baseurl: bad URI(is not URI?): "https://yum1.rabbitmq.com/erlang/el/9/${basearch}", so whitespace is not working
4472f9e to
2a36df4
Compare
In 2024 RabbitMQ's PackageCloud repository has been discontinued in favor of Cloudsmith Kudos to @corporate-gadfly for Hiera.
4774616 to
f53cf5d
Compare
| rabbitmq::loopback_users: | ||
| - 'guest' | ||
| rabbitmq::service_restart: true | ||
| {} No newline at end of file |
There was a problem hiding this comment.
Values were declared both in common.yaml and init.pp + per VoxPupuli guidelines "Static data that is equal across every supported operating system must stay in the init.pp, it shouldn’t be moved to a common.yaml due to puppet-strings issue #250."
| it { is_expected.not_to contain_apt__source('rabbitmq') } | ||
| it { is_expected.not_to contain_class('rabbitmq::repo::rhel') } | ||
| it { is_expected.not_to contain_yumrepo('rabbitmq') } | ||
| it { is_expected.to contain_class('rabbitmq::repo::rhel') } |
There was a problem hiding this comment.
What changed to cause the reversal?
There was a problem hiding this comment.
Upstream repositories are now enabled by default, as Messaging SIG ships an older version (not available yet on EL10 btw)
| @@ -36,8 +36,8 @@ | |||
| context 'with default params' do | |||
| it { is_expected.not_to contain_class('rabbitmq::repo::apt') } | |||
| it { is_expected.not_to contain_apt__source('rabbitmq') } | |||
There was a problem hiding this comment.
What changed to cause the reversal?
There was a problem hiding this comment.
Same (and I'm still working on Debian/Ubuntu tests as I'm having problems with tests toolchain in local)
Pull Request (PR) description
Work in Progress to update module for recent RabbitMQ versions
This Pull Request (PR) fixes the following issues
Fixes #1050