Commit Graph

78 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 346cf85298 Update RabbitMQ to 3.12 series
Change-Id: I2e320b862dbc86a70f660510f2b946c6ac135ca1
2023-10-09 08:02:14 +00:00
Dmitriy Rabotyagov 2fc53a3a03 Adjust wildcard definition
There was no reason to adjust rabbitmq_package_version previously, as
replaced by the wildcard part is never changed, so patching that doesn't
have any practical sense. We also return `-1` to erlang spec, so that
wildcard would match only the part we expect to change.

This partially reverts I99683a031f935b579d38ae457c484c9a150344c6

Change-Id: Ie2e783d065f32b906ee1554abaf5dc3b24236ca8
2023-07-06 09:39:35 +00:00
Damian Dabrowski 953ceccb0b Use wildcards to specify rabbit/erlang versions
For a long time we were struggling with disappearing packages on
packagecloud/cloudsmith repos.
We were told to use {ppa1,yum1}.novemberain.com because packages should
not disappear from there[1].
Unfortunately it just happened causing Rocky jobs to fail with error
message: "No package erlang-25.3.2-1.el9.x86_64 available."

Because we had this issue for a long time and we have not found any
proper solution so far, I think the best we can do is to use wildcards
for version definitions.
Wildcards are used only for build numbers(number after 3th dot) if they
are present. It should minimize a chance to install incompatible erlang
and rabbitmq versions.

[1] https://github.com/rabbitmq/rabbitmq-server/discussions/8386#discussioncomment-6022021

Required-By: https://review.opendev.org/c/openstack/openstack-ansible-os_rally/+/887528
Change-Id: I99683a031f935b579d38ae457c484c9a150344c6
2023-07-04 18:42:49 +02:00
Neil Hanlon efd5ba9be7
Use el/9 repo urls instead of el/8 since a repo is available for it
As we target el9 and not el8, we should use the el/9 repo as it is
available, even though it provides RPMs with an `el8` dist tag. This can
help prevent confusion for users who see a repo on the system configured
with `el/8` in the repourl.

There should be no impact on existing installations, as the same repo
content is provided in both repos in almost all cases--namely, a few
early versions of erlang are unavailable, but as we pin to a version
that exists in both repos, there is no impact to this change: at worst,
the erlang package will be upgraded to a newer minor version if a user
somehow has an older one installed.

Change-Id: I70c13f7f882ce8666b12314a31f76fe63599677c
2023-06-01 20:57:46 -04:00
Neil Hanlon 3ee66ae7af
bump rabbitmq and erlang to latest available
When switching to the Novemberain repos and using the proper EL major
version, some packages are not available in el/9 that are in el/8 repos.
This change bumps rabbitmq to 3.11.17-1 and erlang to 25.3.2-1.

Change-Id: Ia885935ef6d97fae8b61a1c4979b03a51727eb31
2023-06-01 20:54:24 -04:00
Neil Hanlon ab9dbfb50e Change to CloudSmith repos from PackageCloud for RabbitMQ
Upstream has notified us[1] about the immediate deprecation and removal
of the PackageCloud repositories we are using. Thus, we must move to the
CloudSmith repos already being used for the erlang dependency for
RabbitMQ.

[1] https://github.com/rabbitmq/rabbitmq-server/discussions/8386

Closes-Bug: 2021410
Change-Id: I361757b8f76a6c2d087989a36d8f7543aba69e16
2023-05-29 15:25:10 +00:00
Dmitriy Rabotyagov 84d88c5a26 Switch rabbitmq repo back to packagecloud
Due to decision made during PTG, we're switching back source for
RabbitMQ to packagcloud, since cloudsmith does rotate versions
too aggressively and we can't keep up with them.
With that we're leaving erlang source to be cloudsmith, since
there're simply no other good sources for Ubuntu/Debian.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/879671
Change-Id: Ifac1481b459707b289a9804aa4240ebbf55f6ab7
2023-04-07 17:16:43 +00:00
Dmitriy Rabotyagov 98a7f71d17 Update erlang to 25.2.3 and rabbit to 3.11.10
Change-Id: I8c4981a29715509514d5904ca68211093f518976
2023-03-03 21:43:28 +01:00
Dmitriy Rabotyagov 5281c0e264 Bump rabbitmq to 3.11 and erlang to 25.2
Change-Id: If8c83682093cb08e8a092550c44010134cd210d3
2023-01-20 17:31:03 +01:00
Kevin Carter 2e2ef998f5 Update rabbitmq to 3.10.7-1
Bigger number, moar better.

Change-Id: I097b8c678a0744f31db04d0a402a2bba793f6824
Signed-off-by: Kevin Carter <kevin@cloudnull.com>
2022-10-04 15:20:29 +00:00
Dmitriy Rabotyagov bfaeecc548 Update RabbitMQ version to 3.10
Change-Id: Ie291b079c4f10949ad63f80ebb2bafcc09854ffe
2022-05-28 07:45:44 +02:00
Jonathan Rosser b79a6c8bcf Add support for centos-9
Change-Id: I5428a7d8ebb8e1cc108608bddb94784696dab098
2022-05-12 20:13:06 +01:00
Jonathan Rosser 45a5dd7729 Bump rabbitmq / erlang versions
These are bumped to the latest version available in the cloudsmith
repo, noting that there are no erlang packages for debian/bullseye
so these remain the distro provided ones.

Change-Id: Ib6f7ce3173df02908a43f61b6fabbd52e8222917
2022-05-03 12:38:25 +01:00
Dmitriy Rabotyagov 9355e52547 Update used RabbitMQ and Erlang
Change-Id: Ibfe03a445d7e3366ffaebf940386596506a84e6d
2022-01-31 21:03:46 +00:00
Dmitriy Rabotyagov 1b570e3511 Allow different install methods for rabbit/erlang
Currently Debian Bullseye doesn't have erlang provided by external repos
So in order to update rabbitmq version used we need to implement
rabbitmq_erlang_install_method, so that we could use external rabbitmq
with distro provided erlang.

Hpefully that is temporary solution and erlang packages for bullseye
will be built one day.

Change-Id: I32256271759d26522c17fe14c75b41da4c86c31a
2022-01-31 21:03:40 +00:00
Dmitriy Rabotyagov 4ab856bfef Use cloudsmith repo for rabbit and erlang
Switch to using cloudsmith repo as a source for rabbitmq and erlang.

This allows us to be consistent about repository that is
used across supported distributions along with switching from
unreliable erlang-solutions that tend to fail periodically.

Change-Id: Ia438ee3b0aa1ba95aff014776e936516b83181ec
2022-01-29 07:35:17 +00:00
Dmitriy Rabotyagov 52e3978312 Update rabbitmq version
Change-Id: Ie746929b352554cbae6f3a942d5c3eae59697bcd
2021-11-16 15:04:31 +00:00
Andrew Bonney bf53f24dd4 Fix erlang upgrades for rabbitmq external_repo installs
Upgrading only the 'erlang' package does not pull in updated
dependencies which can cause rabbitmq to fail to start during an
upgrade.

The external and distro dependencies appear to match, so these
are conformed to ensure that all packages are updated during an
upgrade.

This patch additionally switches deployments to the 'erlang-base'
rather than 'erlang-base-hipe' package which appears to have been
discontinued.

Change-Id: I8bd010cba13946c9c46c3792624841e41e3c2eaf
2021-08-10 16:11:36 +01:00
Jonathan Rosser 235d912059 Add debian bullseye support
Packages for bullseye are only availble from the distro repository
as there are no officially provided packages from RabbitMQ or Erlang
Solutions yet.

Change-Id: I8515470997982ccb765b6e3bbc824a5445d99f86
2021-05-18 07:54:51 +00:00
Jonathan Rosser 68056e7104 Convert remaining ansible_ variables to ansible_facts[]
Change-Id: I98b009643e8dae37fc8a454508e84e7a146c5b13
2021-03-17 09:48:22 +00:00
Dmitriy Rabotyagov e004cf9e2e Bump rabbitmq version
This updates rabbitmq and erlang versions along with unifying approach
for focal and debian.

Change-Id: I51259a10b2e04cf533b776f34a6bc678e57f8c2a
2021-03-15 14:34:41 +02:00
Jonathan Rosser b8fc872113 Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: Ia6dac13c7e2206f4a86ef8e21c5b1cd80eb16e0e
2021-02-24 10:25:04 +00:00
Jonathan Rosser 5d0ae7e145 Ensure openssl is available
This is required to create the self signed certificate. Minimal
container images may not contain the openssl package.

Change-Id: Id0535cc66671077f8100e66584a9432d5c3d996d
2021-02-17 17:47:20 +00:00
Dmitriy Rabotyagov e93b7e3477 Bump rabbitmq version
This also removes unsupported suse variables

Change-Id: I99ee6702589415b7e580e8f71c61d56a6c464644
2020-10-26 13:17:22 +02:00
Dmitriy Rabotyagov fc27e735a6 Add Centos-8 support
Depends-On: https://review.opendev.org/734672
Depends-On: https://review.opendev.org/735289
Change-Id: I35690f9a54337d6a268406ddcf6726f7040ac966
2020-06-24 20:41:27 +00:00
Zuul 0cd4101c66 Merge "Fix vars file for ubuntu focal" 2020-06-08 13:18:33 +00:00
Dmitriy Rabotyagov 3dbcc70437 Bump rabbitmq and erlang versions
This also includes fix of erlang package pinning

Testing of bionic is disabled to resolve circular dependency

Needed-By: https://review.opendev.org/731837
Change-Id: I4fb070f7b8a97def59e227594273e02fbd8ae2f2
2020-05-30 09:40:10 +00:00
Jonathan Rosser 9a9946c12f Fix vars file for ubuntu focal
Change-Id: Ib7786bb6ce6ef5cfa5991ecdc370d7f8760a9550
2020-05-27 09:14:38 +01:00
Zuul f8994f6c5f Merge "Add experimental support for ubuntu focal." 2020-05-12 19:54:25 +00:00
Jonathan Rosser 9fa1b1b9ed Add experimental support for ubuntu focal.
This uses the rabbitmq/erlang packages from the ubuntu repo itself rather than
a specific version from packagecloud. This should be updated once official
versioned packages are published.

Change-Id: I28ef6f425aac038989fc9981caf9589b3a8c3617
2020-04-28 07:16:06 +01:00
Dmitriy Rabotyagov 37c9bc026e Install rabbitmq from external_repo for all distros
This unifies the way of rabbitmq installation across all distros.
Also includes reno for deprecation of file installation method.

Change-Id: Idcf2d298e2808ef7b1a2160fc94cd6c1b5929182
2020-04-13 23:30:38 +03:00
Dmitriy Rabotyagov 66240e5ad9 Bump rabbitmq versions
Patch updates isntalled rabbitmq and erlang versions.

Change-Id: I3a329a0aeb44cea92706a88fd05cc70d545ccc73
2020-04-07 10:01:43 +00:00
Jonathan Rosser ac501bef87 Bump rabbitmq version to 3.8.2 and erlang to 22.2.2
Change-Id: I66d3b2ffecf7f180b987896496912869953639ac
2020-01-21 13:18:42 +00:00
Dirk Mueller 287bb31279 Switch to the amqp repository for erlang dependencies
Change-Id: I4e7dc0a64c4fa802991c9195cd70dcf4b19ba4ac
2019-11-28 15:09:36 +01:00
Dmitriy Rabotyagov 8c43ee9556 Drop erlang bump for suse
As we're using "upstream" suse repo for retrieving erlang
which don't store previous versions, we have to drop
erlang bump for suse. This will allow to install latest available erlang
which should work.

Change-Id: Ibc0cfa87a57b4f3fb181158f15bb4bf586199d00
2019-11-14 11:29:52 +00:00
Mohammed Naser 246ff262e5 suse: switch to using upstream repos
This patch makes SUSE use the upstream repos for RabbitMQ and
the devel:languages:erlang:Factory for Erlang.

As all distros are using rabbit 3.8 we can drop checking
3.7 style cluster_status output.

Change-Id: Ifaba2611f987e4e135b7a28db6c6053ef63b0913
2019-10-31 09:30:26 +02:00
Dmitriy Rabotyagov 427ab54f39 Bump rabbitmq & erlang versions
Change-Id: Ibf87ccb4554ab7d765d542f5fae3cd857dbf5733
2019-10-22 18:20:52 +03:00
Jonathan Rosser 1bd8152032 Bump rabbitmq & erlang versions
Change-Id: I5afd52d96e03186a3120a4daeff1a9667101a9ae
2019-10-09 15:33:53 +00:00
Kourosh Vivan a183b8d97e Add variable causing error on rerun for redhat OS
Add _rabbitmq_package_version for task rabbitmq_upgrade_check.yml

Change-Id: I3fc2ab177d74202bde77d4850d6dda198e8a8de2
Closes-Bug: 1830030
2019-07-05 09:36:37 +02:00
Mohammed Naser 961ea18059 el7: switch to external_repo install_method
This patch changes the default deployment back to using the
RabbitMQ external repositories.  This restores the behaviour
to the same as the old and ships the 3.7.x series.

We deploy without HiPE by default however our testing is doing
it with HiPE.  This patch drops it so we can actually test
behaviour that we deploy by default.

Change-Id: I49747e104f118ef1fb2bdeb329c92d2f5fb66c56
2019-06-16 16:45:01 +00:00
Mohammed Naser c41b570bc8 apt: converge upload + apt_key tasks
This patch uses a feature of apt_key that allows us to send
a payload containing the key data directly without having
to upload it beforehand.

Change-Id: I4d0ce755461ae27018015dd63581ba9b64cf5122
2019-06-11 17:49:56 -04:00
Mohammed Naser b12b7545c4 Revert "add gentoo support to rabbitmq role"
This reverts commit 13e493c77a.

Change-Id: Ie483be38c923196385b5788197afb780cb2d9845
2019-06-11 16:58:35 -04:00
Mohammed Naser 6825ee1ea0 debian: add support
This patch adds support for this role to be able to deploy on
Debian Stretch.

Change-Id: Ia34d43731d880af3b663e62323c14cf77098c984
Needed-By: I9a92b73c419a0dc1cca40dacfef75de61a61db94
2019-04-05 22:36:45 -04:00
Zuul 282b5e1fe5 Merge "add gentoo support to rabbitmq role" 2019-02-26 14:40:24 +00:00
Matthew Thode 13e493c77a
add gentoo support to rabbitmq role
Depends-On: https://review.openstack.org/633272
Change-Id: If5e248566911f7545d6f230fb67d98af08e336f8
2019-01-25 22:22:18 -06:00
Jesse Pretorius 83affc627f Use in-repo GPG keys
We make remote network hits to get the GPG keys which are quite
unreliable, and apt_key does not support using a proxy properly [1]
so let's store them inside the role and use them.

The implementation here matches that which was done in the
galera_client role in I520ccbadf3320b0d07fc83e3dbec9ea2bd16ec83

[1] https://github.com/ansible/ansible/issues/31691

Change-Id: I2715c904975b7940af72bd422904e748d3bae953
2018-12-18 12:00:59 +00:00
Jonathan Rosser e577e997a9 Add support for arm64 on ubuntu
Fall back to the erlang-base package on arm64 architecture as
the erlang-base-hipe package is not available.

Change-Id: Ic8aeec9cab6aacb5c48755ea7ddd8a3768b5c343
2018-11-22 20:18:17 +00:00
Jimmy McCrory 971fff32b1 Update and level set ubuntu installs
The rabbitmq package installed on both xenial and bionic is actually
the same, allowing the vars files to be consolidated. The package has
also been updated to the latest stable release, 3.7.8.

The repo used for distro based installs has also been changed to
packagecloud.io. New packages have not been published to rabbitmq.com
for a while, the latest release there was 3.6.15.

Change-Id: Id49a8788593c5d64fc9c149c8912565bc3b05a3f
2018-11-08 16:00:09 -08:00
Mohammed Naser cfc8423bfd Ensure that RedHat/SUSE only use a distro install
Previously the 'distro' install method was implemented as the
default for CentOS and SUSE, however, some remnants were left
behind, making the configuration confusing and causing some
issues due to the gpg verification on RedHat trying to use the
RabbitMQ gpg check.

Rather than try and keep the many confusing installation methods
for these distributions, we simply remove the other options and
all the config entries related to it.

As part of this, we need to clean up the functional tests which
previously implemented checks based on the 'file' install type
which is no longer used by any distribution.

Change-Id: I28199ce149f6893d688d11177ec950b17dbf0886
2018-11-07 18:58:06 +00:00
Markos Chandras ff6f7c8e01 RedHat: Use the distribution package
The RDO repository provids a rabbitmq-server which is tested by the
RDO team so we should use that instead of the external one. We also
skip several tasks which add gpg keys and external repositories
since none of these steps is necessary when we install packages
from the distro repos.

Change-Id: I7c0a988f3aab14042ac2491b1021e789ba9ef4b3
2018-09-21 09:22:54 +01:00