Commit Graph

13 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov c15dc767fd 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: I9b9de6cdfac8ba3a89b874cd920df8d5b01e81f2
2023-10-25 09:45:55 +00:00
Dmitriy Rabotyagov 4382257d3f 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.

Depends-On: https://review.opendev.org/c/openstack/ansible-role-systemd_service/+/888223
Change-Id: I9aaf6680c274453a16b6f9879cf488ae2050e71f
2023-07-14 20:07:26 +02:00
Jonathan Rosser f70d823db3 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: I68735b995fe1bce23edb8c092f2199fdde137acd
2021-03-10 12:16:40 +00:00
Dmitriy Rabotyagov 353dc3d050 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: I5c92722d5e7c49d0a01c7e9dbd0b254b5bea6dc4
2020-09-25 18:29:03 +03:00
root b5ddb23860 Add centos-8 support
Renaming redhat-7.yml to redhat.yml for centos-8 support.

Change-Id: If16832b24c89a02d04abd947688f291c0d50c7e9
2020-07-07 01:19:04 -04:00
Dmitriy Rabotyagov 47e2784138 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: Id68c80b52fe72bd209e96dba230b4f2cb12f900d
2019-07-18 09:02:45 +03:00
Guilherme Steinmüller 75ada1c9ba debian: add support
This patch adds the Debian jobs for this role to make sure
it's always passing as well as updates the meta to reflect
it's support of Debian accordingly.

Depends-On: I9a92b73c419a0dc1cca40dacfef75de61a61db94
Change-Id: I3b44f6df8ee613542468da3b49149d664e1e233f
2019-04-09 17:03:48 +00:00
Jesse Pretorius 142dadbf29 Use a common python build/install role
In order to radically simplify how we prepare the service
venvs, we use a common role to do the wheel builds and the
venv preparation. This makes the process far simpler to
understand, because the role does its own building and
installing. It also reduces the code maintenance burden,
because instead of duplicating the build processes in the
repo_build role and the service role - we only have it all
done in a single place.

We also change the role venv tag var to use the integrated
build's common venv tag so that we can remove the role's
venv tag in group_vars in the integrated build. This reduces
memory consumption and also reduces the duplication.

This is by no means the final stop in the simplification
process, but it is a step forward. The will be work to follow
which:

1. Replaces 'developer mode' with an equivalent mechanism
   that uses the common role and is simpler to understand.
   We will also simplify the provisioning of pip install
   arguments when doing this.

Depends-On: https://review.openstack.org/598957
Change-Id: I8b213b0590891b7862aa304f01504295371ea167
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-09-03 17:46:02 +01:00
Jonathan Rosser 3645174149 Use generic vars file for ubuntu
These vars work for both Xenial and Bionic

Change-Id: I01868fde2f449505e3750819bf9261c33fade283
2018-07-31 10:16:40 +01:00
fpxie 29a16a8412 Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: Ib9ce9e1b5ac042c62e27b6c612b1794de80d2c64
2018-05-08 13:57:14 +08:00
Manuel Buil 68305ee8e0 Add support for all OSA OS's
openSuse, Ubuntu and CentOS deployments should be able to use the tacker role

Change-Id: Id37dbfb482e5d1bf2243c914cd3f394f19e619bc
2018-02-05 15:02:26 +01:00
Manuel Buil 4b79d91d7d Provide support for openSUSE
Change-Id: I669030db42395fb5ecd431b2c9ef07829e13a072
2017-11-29 15:47:31 +00:00
root bb87b62ea4 first commit 2016-09-20 19:19:12 +00:00