Commit Graph

16 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 8ac4957d11 Add quorum queues support for service
This change implements and enables by default quorum support
for rabbitmq as well as providing default variables to globally tune
it's behaviour.

In order to ensure upgrade path and ability to switch back to HA queues
we change vhost names with removing leading `/`, as enabling quorum
requires to remove exchange which is tricky thing to do with running
services.

Change-Id: I900f40d7db6c26356252a7be736c1b3bdc98cace
2023-10-30 18:01:42 +00:00
Dmitriy Rabotyagov a39be0602c Fix example playbook linters
Change-Id: I656ee1f696ab37cb94591f4c478bdd939e694e13
2023-10-30 18:01:32 +00:00
Dmitriy Rabotyagov 9917675a9f Fix linters and metadata
With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.

With that we also update metdata to reflect current state.

Change-Id: I022c2ed5edb0acb80433a29172bd6617e994f30f
2023-08-22 12:45:59 +02:00
Dmitriy Rabotyagov f991870918 Ensure service is restarted on unit file changes
At the moment we don't restart services if systemd unit file is changed.

We knowingly prevent systemd_service role handlers to execute
by providing `state: started` as otherwise service will be restarted twice.
With that now  we ensure that role handlers will also listen for systemd
unit changes.

Change-Id: I8703c4982a56bad5995119a1b05578f74a9eb2d7
2023-04-10 16:24:38 +02:00
Dmitriy Rabotyagov e2ed22524c Replace git-core with git for debian
With ansible-core 2.13 it tries to substitude package resolution in apt
module.
However git-core is used in Debian as transitional name, but ansible
tries to select it and provide version, which is not correct behaviour.
But since git-core is not really valid anyway, we just replace it
to workaround ansible's imperfectness.

Change-Id: I247aa7bebda37b6c8d9e83767e7b77d1cd30c575
2022-10-05 11:03:53 +02:00
Jonathan Rosser 736f80885d 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: Id400c679e1ccc5cc10a92143321ec3e182f9ecdc
2021-03-10 12:16:39 +00:00
Dmitriy Rabotyagov 99f3fed9fd Define condition for the first play host one time
We use the same condition, which defines against what host some "service"
tasks should run against, several times. It's hard to keep it the same
across the role and ansible spending additional resources to evaluate
it each time, so it's simpler and better for the maintenance to set
a boolean variable which will say for all tasks, that we want to run
only against signle host, if they should run or not now.

Change-Id: Ib8c8ddf5adc71f42b401b034807c4e716f515202
2020-09-16 13:50:01 +00:00
root 22701d0aeb Add centos-8 support
Renaming redhat-7.yml to redhat.yml for centos-8 support.

Change-Id: Idedaa4729e01cb787bd06af3dc3427113fc0bfe3
2020-07-07 01:30:29 -04:00
Dmitriy Rabotyagov ac93b1f46f Start using uWSGI role
Move service to use uWSGI role instead of iternal task for uwsgi
deployment. This aims to ease the maintenance of uWSGI and speedup
metal deployments as the same uwsgi environment will be used
across all services.

Change-Id: Ia1788a7a9ce80349440bedbb2a0fdeb2a7f9934a
2019-09-05 14:46:14 +03:00
Dmitriy Rabotyagov c9e5f629b4 Use systemd-journald instead of log files
This patch aims to migrate service from usage of regular syslog files
to journald. We also disable uwsgi logging, since it dublicates
requests that are logged by service itself.

Change-Id: I61605b7820bb518fb809b01781f6d83f89487be8
2019-07-17 16:14:34 +00:00
Jimmy McCrory 9dc1001380 Fix distro installs on Ubuntu
Beginning in the Stein release, Ubuntu distro packages are now using
Python3. This requires additionally installing and using the uwsgi
python3 plugin.

Install the 'python3-mistral' package instead of individual service
packages since they provide service config files that conflict
with the ones OSA provides.

Depends-On: https://review.opendev.org/#/c/662571
Change-Id: I4b9846a12382f3ef4acdffce8a6f2338ed45d6ff
2019-06-10 23:47:22 +00:00
Guilherme Steinmüller 64927361a2 debian: add support
This patch adds the Debian jobs for this role to make sure
it's always passing as well as renaming vars/ubuntu.yml to
vars/debian.yml

Depends-On: I9a92b73c419a0dc1cca40dacfef75de61a61db94
Change-Id: I06a0726fc468067853a146494b0256bc6fdec670
2019-04-09 16:43:12 +00:00
Zuul ce22401c84 Merge "Add missing pkg for uwsgi service" 2019-04-04 19:39:33 +00:00
Marc Gariepy 0b78a4eeb6 Add missing pkg for uwsgi service
Change-Id: I376bc973347e6ff8f5f08a6ba9e5a3f0d34d282a
2019-04-04 13:35:42 +00:00
Marc Gariepy da565e7d9d Add cache timeout for ubuntu
Change-Id: Ib5d716dabd31e4c7d333a2e8796ad9fe4efb09fa
2019-04-04 13:35:21 +00:00
Mohammed Naser b6f83caabf Add initial Mistral role
This role allows the installation of Mistral alongside running
all of the API tests.

Depends-On: I2e19efd5fdcb0bdbb3d1cd5ee44f20e4807ea537
Depends-On: Ie3d8fb921dfedff0852b630a0a0af17b97c1bffa
Change-Id: I2390533690cd2c4511a272cc0834e240bb554696
2019-02-06 15:42:34 -05:00