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: Ic56d5d1bd1ead8fd6bb642913370fa206799256f
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
Depends-On: Ia88b8e606a19ad8ee20665e125df1079b0a771ff
Change-Id: I88c4317a711ec9c8e00b13a2f4deede1e53830b1
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: Ia57c07c583be6e3fb9582b1d4a2da0deb4854154
This patch moves aodh-api from usage of apache with mod_wsgi
to uWSGI role, which means unification across another roles and
reduced maintenance costs
During migration period tasks that ensures apache won't listen
on panko_service_port are present, but they are supposed to be removed
after train release.
Depends-On: https://review.opendev.org/678025/
Change-Id: I9377d46b4b79f79dbf448b23c67ff21b80714b6c
Beginning in the Stein release, Ubuntu distro packages are now using
Python3.
Install the 'python3-aodh' package instead of individual service
packages since they provide service config files that conflict
with the ones OSA provides.
Change-Id: I708dfd69dbb68240fc1205893fe8c4870476da60
Currently the devel packages are installed everywhere,
but they only need to be where the wheels are built.
Also, there is already a task to install the packages
needed on the target hosts when installing - so we do
not need to give the same list to the venv install role
because they will already have been installed.
Change-Id: I59394c17c8a5475cc41b583268e45df1da561e7d
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
Depends-On: https://review.openstack.org/602921
Change-Id: I7df36022bbfb8dc887b325f278de01d3b32a94fb
The systemd journal would normally be populated with the standard out of
a service however with the use of uwsgi this is not actually happening
resulting in us only capturing the logs from the uwsgi process instead
of the service itself. This change implements journal logging in the
service config, which is part of OSLO logging.
OSLO logging docs found here: <https://docs.openstack.org/oslo.log/3.28.1/journal.html>
Change-Id: I7bd5419e7f02593a16614746a974b5f8ab3aa504
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
The devel packages are only needed to build the pip pacakges so we don't
need them when we install packages straight from the distro repos.
Change-Id: Ie598d5c4e9319867793ac34ef62f5d7c11d082fd
Implements: blueprint openstack-distribution-packages
Distributions provide packages for the OpenStack services so we add
support for using these instead of the pip ones.
Change-Id: If6daa1bb784df46e83bbc118981240eb59a1409d
Implements: blueprint openstack-distribution-packages
This patch standardizes the package installation to pass a list rather
than "with_items".
Additionally, we can utilize a filtered_services list to ensure we only
attempt tasks against the relevant hosts rather than running through
tasks that would be skipped.
Change-Id: I2c5ad3c2773b890bf6689b8ff87871a4af2021a8
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: Ic6200e17b5e5b39c06166aae37bab4d31f2df817
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: I0f6e177d080da10ba3e992f1c2f1e5cd7a4262ff
In order to use Apache, it must be installed. Somehow this got
missed in https://review.openstack.org/343918 - not sure how
it passed the tests either, but the Aodh role will not install
in the integrated build without this patch.
Change-Id: I197b3c842e1a828fd675bf42cfc14a8640529430
This change updates the aodh role to support Ubuntu 14.04 with
upstart init and 16.04 with a systemd init.
Some tags for tasks are updated to conform to convention as well.
Change-Id: Ice81e049475b31559c861c0d20bcd26867da321c
Implements: blueprint support-ubuntu-1604
* The default apt packages have been moved into a var file
that is only loaded when the detected OS is matched.
* The Install task file has had the apt specific tasks moved
into a named install task file.
Change-Id: I9bad054a3898a688bd372f91de468ad7d5fa41ec
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>