-
-
Notifications
You must be signed in to change notification settings - Fork 499
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add official support for CentOS/RHEL 8
This change makes CentOS 8 and RHEL 8 as a suppotrted OS. For CentOS 8 RabbitMQ package is not available in EPEL and PackageCloud repos should be used instead. This change adds support for additional erlang repository so that users can install rabbitmq correctly without missing dependencies. [1] https://www.rabbitmq.com/install-rpm.html
- Loading branch information
Showing
16 changed files
with
123 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
--- | ||
rabbitmq::python_package: 'python3' | ||
rabbitmq::package_name: 'rabbitmq-server' | ||
rabbitmq::service_name: 'rabbitmq-server' | ||
rabbitmq::package_gpg_key: 'https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey' | ||
rabbitmq::erlang_package_gpg_key: 'https://packagecloud.io/rabbitmq/erlang/gpgkey' | ||
rabbitmq::rabbitmq_release_gpg_key: 'https:/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Makes sure that the Packagecloud repo for erlang is installed | ||
# | ||
# @api private | ||
class rabbitmq::repo::rhel::erlang ( | ||
$location = "https://packagecloud.io/rabbitmq/erlang/el/${facts['os'][release][major]}/\$basearch", | ||
String $key_source = $rabbitmq::erlang_package_gpg_key, | ||
String $rabbitmq_key_source = $rabbitmq::rabbitmq_release_gpg_key, | ||
) { | ||
yumrepo { 'rabbitmq-erlang': | ||
ensure => present, | ||
name => 'rabbitmq_rabbitmq-erlang', | ||
baseurl => $location, | ||
gpgkey => "${key_source} ${rabbitmq_key_source}", | ||
enabled => 1, | ||
gpgcheck => 1, | ||
} | ||
|
||
# This may still be needed to prevent warnings | ||
# packagecloud key is gpg-pubkey-df309a0b-5bbb8d6e | ||
exec { "rpm --import ${key_source}": | ||
path => ['/bin','/usr/bin','/sbin','/usr/sbin'], | ||
unless => 'rpm -q gpg-pubkey-df309a0b-5bbb8d6e 2>/dev/null', | ||
} | ||
|
||
ensure_resource('exec', "rpm --import ${rabbitmq_key_source}", { | ||
'path' => ['/bin','/usr/bin','/sbin','/usr/sbin'], | ||
'unless'=> 'rpm -q gpg-pubkey-6026dfca-573adfde 2>/dev/null', | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.