rabbitmq / chef-cookbook

Development repository for Chef cookbook RabbitMQ
https://supermarket.chef.io/cookbooks/rabbitmq
Apache License 2.0
214 stars 423 forks source link

oracle support #568

Closed ariva07 closed 3 years ago

ariva07 commented 3 years ago

After migrating to Oracle, the default recipe won't install the package properly:

[2021-02-10T11:43:18+01:00] ERROR: rpm_package[/var/chef/cache/] (rabbitmq::default line 224) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of ["rpm", "-qp", "--queryformat", "%{NAME} %{VERSION}-%{RELEASE}\n", "/var/chef/cache/"] ----
STDOUT: 
STDERR: error: /var/chef/cache/: read failed: Is a directory (21)

Adding oracle to the list in recipes/default.rb, line 49 would probably easily fix the problem (tested on chef-zero)

 48 default_rpm_package_name = value_for_platform(
 49   %w(centos redhat scientific oracle) => {
 50     '< 7.0' => "rabbitmq-server-#{version}-1.el6.noarch.rpm",
michaelklishin commented 3 years ago

Please submit a PR.

michaelklishin commented 3 years ago

Should be resolved as of 3733b59.