30f338e4bcd2e693dc4ecb5dc1d1509982440e52
502 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
Dmitriy Rabotyagov
|
30f338e4bc |
Switch sphinx language to en
With sphinx release of 5.0.0, they changed default for language variable to 'en' from None. With that current None valuable is not valid and should not be used. Change-Id: I64557e48679227101ba1cd20a95385df3d493a4d |
||
|
Dmitriy Rabotyagov
|
bfaeecc548 |
Update RabbitMQ version to 3.10
Change-Id: Ie291b079c4f10949ad63f80ebb2bafcc09854ffe |
||
|
Zuul
|
f3f624f4c9 | Merge "Add support for centos-9" | ||
|
Jonathan Rosser
|
b79a6c8bcf |
Add support for centos-9
Change-Id: I5428a7d8ebb8e1cc108608bddb94784696dab098 |
||
|
Dmitriy Rabotyagov
|
f9a69c1fec |
Return Erlang distribution port mgmt binding
While converting config to new style, erlang 25672 port binding to mgmt IP has been lost. We fix this now with re-adding inet_dist_use_interface option. Change-Id: Ife5bb330240ecbac3814f2e161c5e108e25f6c14 |
||
|
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 |
||
|
Dmitriy Rabotyagov
|
dceda157fa |
Replace shell with simple command for version verification
There is no need in using complicated shell for getting/grepping for instaled rabbitmq version as this can be done in more neat way with simple commad. Alternative would be to gather package facts, but we may want not to rely on facts caching and leave quering package managers. Change-Id: Ieb858a7e850ec6b48989196392fb85a4b3c2a8a7 |
||
|
Dmitriy Rabotyagov
|
8316e00cf0 |
Pass rabbitmq role in check mode
In order to pass check mode, we must retrieve current installed version regardless of mode. Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/837706 Change-Id: Ib6a3084a8f5afd3d045864d0853ebffa025329e0 |
||
|
OpenStack Proposal Bot
|
0c9c494333 |
Updated from OpenStack Ansible Tests
Change-Id: Ie49bd68329ab47a4a583d385a01e92d8ffb9a3f2 |
||
|
Zuul
|
67679fcf2a | Merge "Remove affecting rabbitmq hosts record" | ||
|
Zuul
|
1de3bf4cc7 | Merge "Verify if hosts file already managed with OSA" | ||
|
Dmitriy Rabotyagov
|
e6b3ddbc1e |
Remove affecting rabbitmq hosts record
Record for 127.0.1.1 is added by some distributions which makes clustering fail, as Erlang port is binded to mgmt IP, while rabbit expects to access it through $hostname, which would lead to 127.0.1.1. At same time it's possbile to explicitly bind distribution port only to single address. So we need to ensure that hostname resolvs to mgmt IP and drop record for 127.0.1.1 Closes-Bug: #1960587 Change-Id: I907d4714319ac7134ede0dc62b51c1964b9befc5 |
||
|
Dmitriy Rabotyagov
|
c8ce051651 |
Verify if hosts file already managed with OSA
With this patch we ensure that duplicated records are not created with rabbitmq role if hosts file already contain OSA managed block. Managing hosts still might be required for role usage outside of the OSA so we workaround this usecase. Change-Id: Ia20902f0ffe21ce563966fee4d233e5ec3afe3d9 Related-Bug: #1960587 |
||
|
Zuul
|
9790981aa6 | Merge "Use journald logging for RabbitMQ" | ||
|
Zuul
|
cf7d4bafe1 | Merge "Remove old repos for Debian" | ||
|
Zuul
|
ae3c16ba00 | Merge "Use systemd_service role for overrides" | ||
|
Zuul
|
5956b05381 | Merge "Use sysctl ini-like config file" | ||
|
Dmitriy Rabotyagov
|
3a735007c6 |
Remove old repos for Debian
It appears that old repo must be removed explicitly and apt_repository don't have an option for exclusive content when filename defined So we need to drop old repo after switching to cloudsmith to avoid fetching data from them and make repos clean during upgrade. Change-Id: Iffb5dd5f9a1937825e2cc345b720d7af072608c1 |
||
|
Dmitriy Rabotyagov
|
8271919b17 |
Use systemd_service role for overrides
Replace placing templates for systemd overrides with systemd_service role, that will handle overrides for us in more convenient and unified way. Change-Id: I2759b1949e9ecc98953f414c6f9838aed7dd8499 |
||
|
Dmitriy Rabotyagov
|
9355e52547 |
Update used RabbitMQ and Erlang
Change-Id: Ibfe03a445d7e3366ffaebf940386596506a84e6d |
||
|
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 |
||
|
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 |
||
|
Dmitriy Rabotyagov
|
a31f2e20f4 |
Use journald logging for RabbitMQ
Since RabbitMQ 3.9 [1] journald logging support has been implemented As we use journald logging for most of the services and aim to make it a standard, switching rabbitmq to journald follows this goal and deployment unification [1] https://github.com/rabbitmq/rabbitmq-server/pull/2940 Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-rabbitmq_server/+/826446/ Change-Id: I86462f8279ebb5dc28e92fc8440cc0ab26f0759d |
||
|
Dmitriy Rabotyagov
|
e707eecdd8 |
Use sysctl ini-like config file
Starting from RabbitMQ 3.7.0 it's recommended to use new-style config which is simply an ini file. It's easier to read and maintain config file in ini fromat rather then in classic erlang. At the same time we still keep old-style config as it might have settings that are not supported in new-style config. There're no evidences that used there options are still supported, but it's worth deprecating them in follow-up patch anyway. Change-Id: I239366ad4aa2bc7a02d826b6c2f94631f4b0e622 |
||
|
Jonathan Rosser
|
e41730d531 |
Refactor use of include_vars
Use a first_found lookup instead of a with_first_found loop so that the 'paths' parameter can be used. This ensures that only vars from the role are included, and not vars from a parent calling role. This can happen when a parent role has a higher priority vars file available for inclusion than the role it calls. Change-Id: Ie2d656bc04ea600e35735a7a8630cadd915469b7 |
||
|
OpenStack Proposal Bot
|
9cc3e12c56 |
Updated from OpenStack Ansible Tests
Change-Id: I65495c528a7e48e0e41f599d98bcced3e4bfc284 |
||
|
Zuul
|
34819a10ac | Merge "Allow to provide policy state" | ||
|
Dmitriy Rabotyagov
|
bf5da3b7fa |
Allow to provide policy state
It might be desired by deployer to remove already applied policy. For that policy state should be explicitly passeda as absent for the module. Change-Id: I24bb110998eef978daf618964c1ee3713eb6b339 |
||
|
Dmitriy Rabotyagov
|
e6ef36449b |
Fix tags usage
With include_tasks we got tags behaviour broken since they need to be specifically applied and "always" tag should be assigned for include itself for tags inside include to work properly. Change-Id: If912a2fe2ca5358dd680fec85ef16823c46713bb |
||
|
Dmitriy Rabotyagov
|
52e3978312 |
Update rabbitmq version
Change-Id: Ie746929b352554cbae6f3a942d5c3eae59697bcd |
||
|
Dmitriy Rabotyagov
|
a2b11fcad9 |
Fix PKI certificates regeneration
We were passing wrong variable to PKI role which didn't have any effect. Change-Id: Iefbd2d116c867dc673edab2bfdadde6b6a75f3f9 |
||
|
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 |
||
|
Zuul
|
840f47f4b9 | Merge "Use ansible-role-pki to generate SSL certificates" | ||
|
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 |
||
|
Zuul
|
892615bbe3 | Merge "Modernise TLS configuration" | ||
|
Jonathan Rosser
|
df13274e15 |
Use ansible-role-pki to generate SSL certificates
Supports two scenarios: 1) variables defined in defaults/main.yml are sufficient to create a root/intermediate CA certificate for rabbitmq when this role is used outside openstack-ansible. 2) when: openstack_pki_dir openstack_pki_setup_host openstack_pki_authorities openstack_pki_service_intermediate_cert_name are defined, an external CA already created on the deploy host with a previous run of ansible-role-pki will be used as the CA. Server certificates for the rabbitmq instances are created from the data in rabbitmq_pki_certificates in both situations: Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/788031 Change-Id: I4cb7c48a74a307217b645cb8528fdbb0f7b9f596 |
||
|
Jonathan Rosser
|
fa4135ad6e |
Modernise TLS configuration
Set up TLS1.2 as recommended in https://www.rabbitmq.com/ssl.html Change-Id: I634ffe7ed47b8670bd2aad029dac1313cebd2961 |
||
|
Zuul
|
08ae98bd66 | Merge "Fix service restart when using tags" | ||
|
Jonathan Rosser
|
fb93d2862d |
Fix service restart when using tags
If an adjustment to the rabbit config is made which rewrites the config file, and the playbook is run with --tags rabbitmq-config,rabbitmq_server-config then the new config file will be written but the service is not restarted. This patch adds tag inheritance to the include_tasks for service restarts to ensure that the service is restarted if the just the config is updated. Change-Id: Ia4bcc7a9421d16a8bc35340e1a31a3eb15519369 |
||
|
Dmitriy Rabotyagov
|
fc68b1cbfe |
Use integrated tests for rabbitmq
Change-Id: I93e86a15ac39b04b939102e1836d880005fe8587 |
||
|
OpenStack Proposal Bot
|
b9a265926f |
Updated from OpenStack Ansible Tests
Change-Id: I5e19e392053e43fbf42bc418f3016dd93323e67d |
||
|
Jonathan Rosser
|
68056e7104 |
Convert remaining ansible_ variables to ansible_facts[]
Change-Id: I98b009643e8dae37fc8a454508e84e7a146c5b13 |
||
|
Jonathan Rosser
|
712641e32c |
Remove references to unsupported operating systems
All references to Gentoo, SUSE, Debian stretch and Centos-7 are removed. Conditional tasks, ternary operators and variables are simplified where possible OS specific variables files are generalised where possible Change-Id: Ic1b8b532adec2c46373d3a0a3cea8387bff7817a |
||
|
Dmitriy Rabotyagov
|
e004cf9e2e |
Bump rabbitmq version
This updates rabbitmq and erlang versions along with unifying approach for focal and debian. Change-Id: I51259a10b2e04cf533b776f34a6bc678e57f8c2a |
||
|
OpenStack Proposal Bot
|
556eb08388 |
Updated from OpenStack Ansible Tests
Change-Id: I169f3e28dea1259d944f30cf118c8957e338aeed |
||
|
Jonathan Rosser
|
b8fc872113 |
Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654 Change-Id: Ia6dac13c7e2206f4a86ef8e21c5b1cd80eb16e0e |
||
|
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 |
||
|
dmitriy
|
38abc1d954 |
[reno] Stop publishing release notes
Since we copy all release notes to the integrated repo there is not need in publishing release notes for each repository. We should only verify their validity and linting. Change-Id: I27f0676a07ed7876ed91f588c3a17a15eddb4e96 |
||
|
Dmitriy Rabotyagov
|
e93b7e3477 |
Bump rabbitmq version
This also removes unsupported suse variables Change-Id: I99ee6702589415b7e580e8f71c61d56a6c464644 |
||
|
Jonathan Rosser
|
8e6833be85 |
Require the use of community.rabbitmq ansible collection
Remove the ansible 2.9 compatibility task. This change means that this role requires either ansible 2.9 or 2.10, with the community.rabbitmq collection in order to give the 'broker_state' parameter for the rabbitmq_plugin module. Change-Id: I430c8edc8c973b9018ff9a4d865c174ee07dcc7a |