-
-
Notifications
You must be signed in to change notification settings - Fork 497
CLI Environment Fixes #876
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
Changes from 7 commits
46dfc45
9b39d7b
200a093
a484bb1
72cded3
a2515d4
e8cb1d5
b7b8ef8
7cf4442
a0b068c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ | |
| # @api private | ||
| class rabbitmq::repo::rhel ( | ||
| $location = "https://packagecloud.io/rabbitmq/rabbitmq-server/el/${facts['os'][release][major]}/\$basearch", | ||
| $erlang_location = "https://packagecloud.io/rabbitmq/erlang/el/${facts['os'][release][major]}/\$basearch", | ||
| String $key_source = $rabbitmq::package_gpg_key, | ||
| ) { | ||
| yumrepo { 'rabbitmq': | ||
|
|
@@ -14,6 +15,17 @@ | |
| gpgcheck => 1, | ||
| } | ||
|
|
||
| # This is required because when using the latest version of rabbitmq because the latest version in EPEL | ||
| # for Erlang is 22.0.7 which is not compatible: https://www.rabbitmq.com/which-erlang.html | ||
| yumrepo { 'erlang': | ||
|
||
| ensure => present, | ||
| name => 'rabbitmq_erlang', | ||
| baseurl => $erlang_location, | ||
| gpgkey => $key_source, | ||
| enabled => 1, | ||
| gpgcheck => 1, | ||
| } | ||
|
|
||
| # This may still be needed to prevent warnings | ||
| # packagecloud key is gpg-pubkey-d59097ab-52d46e88 | ||
| exec { "rpm --import ${key_source}": | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "puppet-rabbitmq", | ||
| "version": "11.0.1-rc0", | ||
| "version": "11.0.2-rc0", | ||
|
||
| "author": "voxpupuli", | ||
| "summary": "Installs, configures, and manages RabbitMQ.", | ||
| "license": "Apache-2.0", | ||
|
|
||
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.
IIRC, this should already be set for most use cases via
puppet-rabbitmq/data/common.yaml
Lines 82 to 83 in dfd7607
I'm not 100% sure that that applies to commands run in the provider, but I think it should; I know there have been some previous fixes around this error.
Since
environment_variablesis a parameter already, maybe the right fix here is to somehow either addHOMEto defaults or merge the defaults with the environment for the CLI here?Either way, I think the environment fix here should probably be a separate PR, as it's a narrower fix that we should be able to merge quickly, and likely affects other OSes besides RHEL.
Did you confirm that both
LANGandLC_ALLwere necessary?LC_ALLhas worked in the past and is the somewhat narrower fix.