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: I0265fc94d795360f6dfbddee5398ee067ea0422b
The python_venv_build role is responsible for setting up the build
environment for python wheels so this role should not install
python development packages
Change-Id: I6f3713135e3b937768d799c6e2c141427c498a16
When adding ceph_alternative in pip extras, pip tries to install
python-rados which is not available from pypi and this fails installation
We symlink all required packages inside venv with ceph_client role so
providing ceph_alternative as extras makes no sense.
Change-Id: If4103a28235b0127b5e2220577a7cd2451154c1d
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: Ie0dbc0c142bfedabb1027e3809463d78e861b625
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: I69c08fd522c1c80356000b1cf2a48a9b63327b3c
renaming redhat-7.yml to redhat.yml to support centos-8. (setting non-voting to break telemetry dependency)
Change-Id: I95c2c7c158cfcad6746188b24a0e06ffd2564244
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: Iec03bd79279e694678336880460bcb83f68d9780
This patch moves gnocchi-api from usage of apache with mod_wsgi
to uWSGI, which means unification across another roles and
reduced maintenance costs
During migration period tasks that ensures apache won't listen
on gnocchi_service_port are present, but they are supposed to be removed
after train release.
Depends-On: https://review.opendev.org/671988
Change-Id: I06bbcb2f15108fc517742208ac5291719627ffe2
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: I3f6a1cee0e98372881b015ebf06e405c79495fe1
This patch updates the meta to reflect it's support
of Debian accordingly as well as rename ubuntu vars
file to debian.
Depends-On: Icf91eee6e369d9a6a95dd0c8772c2760eaff5bd2
Change-Id: I4eb6161d7092c922fe41aa27ff619d287353f575
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. The exterior role is built to be OSA
compatible and may be pulled into tree should we deem it necessary.
Change-Id: I54e3063d6e641a785377f9039641072f8001cf24
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: Ieb2bedd3a6ebd005f224a26010066c8d6f7928ef
To make the transition between versions easier,
we rename the vars file. This also resolves
issues when meta-dependent role inclusions do
not pick up the correct file when using the
include_vars task with multiple search paths.
Depends-On: https://review.openstack.org/602924
Change-Id: I84e39b06e4a0b89665e62f79308505043ef7fa98
librados2-dev is need to build 'cradox', from gnocchi's ceph
requirements.
The package lists have also been alphabetized.
A linting error in tests was corrected to unblock the gates.
Change-Id: I91b579ff478c02f40fb1573b433735a6a3794e2b
Add support for the openSUSE Leap distributions. Additionally,
for openSUSE, we need to load some extra apache2 modules which are
not there by default.
Change-Id: Ic2d99cd7639a5b442699fec971c9482a37bb862e
The current mechanism uses a lookup, causing the
fetch of the default templates to happen via curl
from the deployment node. This causes problems if
the deployment node does not have access to the
repo server web service, which may be the case in
high security environments.
This patch changes the mechanism to only use the
lookup module for the file content that is on the
deployment node, then falls back to using the uri
module to fetch the default content. This ensures
that the deployment node does not have to reach
into the environment for the content.
Change-Id: Ia067a7cd2bc4460462b55f4631eba6e8eb693b0f
In order to make it easier to differentiate between the lists of
python packages, distribution packages, downloaded packages,
package pins and other similar variables the variable names are
being changed to ensure that they have a more explicit suffix
that defines the purpose and makes the naming more consistent.
This is to facilitate a lookup plugin which will be able to look
up all the package lists and present them as a consolidated piece
of data which may be used for artifact preparation.
Change-Id: Ib4e9ea67433a897ce7102a453ae5560a64c55c60
This change updates the Gnocchi role to support Ubuntu 14.04 with
upstart init and 16.04 with a systemd init.
A change for the functional tests disables them. They will be
fixed properly in a following patch.
Change-Id: I6170a3bcc6ad61474a0a70c786b2607915868e17
Related: blueprint support-ubuntu-1604
The role begins by determining which platform is in use, and system
packages are installed based on that platform using a conditional
include pattern introduced throughout OpenStack-Ansible roles.