Commit Graph

18 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 676846b6a2 Fix Blazar authentication and endpoints definition
Closes-Bug: #2048048
Co-Authored-By: Alexey Rusetsky <fenuks@fenuks.ru>
Change-Id: I0dc54f1de1992b24cac7fcdc88d04daa2901cbc4
2024-01-05 21:13:07 +00:00
Dmitriy Rabotyagov 856b4401a1 Add quorum 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.

Change-Id: If9a9ee764dd41767aaa1285903eb3c21cc0da40c
2023-09-28 14:29:25 +00:00
Dmitriy Rabotyagov 9f6ea81c64 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: Ic97b301d704d3bc19142315a69724c05f3cad875
2023-07-13 16:41:33 +02:00
Damian Dabrowski c9d10f41fa Add uWSGI support to blazar
This patch adds uWSGI support to os_blazar role. All openstack services
should stay behind uWSGI.

It's also required for upcoming TLS backend feature. Blazar does not
have native TLS support so it needs to be handled by uWSGI.

Change-Id: I65511de4d5014a28f0f91536f9dbaf96fcb8e7a2
2023-04-24 12:48:23 +02:00
Dmitriy Rabotyagov 8c0744496b 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: I001ffdb5eedfb8d17edd593dfb1818c5b1bd02df
2023-04-10 15:43:16 +02:00
Dmitriy Rabotyagov d4ca9d3483 Clean up debian blazar_distro_packages
Sync packages instaklled for debian and redhat. We don't need these
packages to be installed to all blazar containers instead of being devel
ones.

Change-Id: I2f49f5c0badb730cafef6b53c9c99db362285dd8
2021-09-21 14:13:00 +03:00
Jonathan Rosser 8eb1734656 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: I3781543c5f5005d578a4010ac8ff41dbdcc8407a
2021-03-10 16:32:42 +00:00
Dmitriy Rabotyagov a969b5ee77 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: I6f1937c329292028e772fbe96d2466000726e4b7
2020-09-11 15:00:25 +03:00
root f00ced3c38 Add centos-8 support
Renaming redhat-7.yml to redhat.yml for centos-8 support with python3-antlr3 for debian distro.

Change-Id: I91c3b848bb0967d282742113d16326018aa7f7b9
2020-07-24 16:13:56 +00:00
Dmitriy Rabotyagov 75e563b036 Convert dynamic includes to static imports
When task/role files are included using include_tasks, tags are not
passed to the included tasks. As a result, tags like neutron-config
do not have the intended effect. This patch changes include_tasks
to import_tasks for all cases where dynamic vars or loops are not used
so that tags are properly handled.

Reference -
https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse.html
https://bugs.launchpad.net/openstack-ansible/+bug/1815043

Change-Id: I14bfdc0e488ffd2db1d0b82afd773674819ee0f4
2019-07-17 16:55:57 +03:00
Jean-Philippe Evrard 0d44c8e073 Add SUSE and CentOS support to blazar
Change-Id: I75e46cdaa7f86331dcff44970baf04d44987a33c
2019-05-15 12:26:25 +00:00
Guilherme Steinmüller 5976e02271 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: I3bf65f8188421a7442b0a7b7aec293ec45bbd7ee
2019-04-09 17:07:03 +00:00
Jesse Pretorius 17bfd0b7ff Define cache_timeout variable
Much like the 'debug' variable, the 'cache_timeout' variable
is an expected variable, but is currently not defined in the
role. This causes the role to fail when the galera_client
meta-dep is removed (because that role defined it, this role
inherited it).

Change-Id: Ie857ae2eea5078a2d33ffaa4386dfa3714d02cd2
2018-09-24 22:37:30 +01:00
Jesse Pretorius 41910f2ab7 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: Ia84e9f0a7b7627182e4b10aa3fc4f0d708edfee8
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-09-03 11:06:40 +00:00
Kevin Carter ed9e0d5399
Convert role to use a common systemd service role
This removes the systemd service templates and tasks from this role and
leverages a common systemd service role instead. This change removes a
lot of code duplication across all roles all without sacrificing features
or functionality. The intention of this change is to ensure uniformity and
reduce the maintenance burden on the community when sweeping changes are
needed.

Change-Id: Ife802766cefa8862f2b0e42f06c100b30d65edf8
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-07-31 14:56:47 -05:00
Taseer Ahmed c88f861250 set distro packages 2018-02-19 10:36:18 +05:00
Taseer Ahmed d17b8161aa update to the latest 2018-02-17 17:53:22 +05:00
Taseer Ahmed 6d3c5fb31c Outline the structure 2017-12-24 19:17:51 +05:00