Commit Graph

11 Commits

Author SHA1 Message Date
Guilherme Steinmüller b9a2cc75ab Retire openstack-ansible-os_almanach
Change-Id: I5fb5593772c41f5c18154c7ac77a12bfa79de625
2019-04-24 16:40:02 -04:00
caoyuan 3cd7fbdc28 use include_tasks instead of include
include is marked as deprecated since ansible 2.4[0]

Switch to include_tasks or import_playbook as necessary

[0] https://docs.ansible.com/ansible/2.4/include_module.html#deprecated

Change-Id: I739584e0f4585832dbc5ee37a82eda5582866023
2018-08-15 14:39:52 +08:00
Kevin Carter eac3740711 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: Id817631699d711993bbdad08660d8067550430e6
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-07-30 23:12:38 +00:00
Kevin Carter 170944e154
Ensure the components are isolated from the system
This creates a specific slice which all OpenStack services will operate
from. By creating an independent slice these components will be governed
away from the system slice allowing us to better optimise resource
consumption.

See the following for more information on slices:

* https://www.freedesktop.org/software/systemd/man/systemd.slice.html

See for following for more information on resource controls:

* https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html

Tools like ``systemd-cgtop`` and ``systemd-cgls`` will now give us
insight into specific processes, process groups, and resouce consumption
in ways that we've not had access to before. To enable some of this reporting
the accounting options have been added to the [Service] section of the unit
file.

Change-Id: I022ecb7c291287116d184bcedecaf1d39530dd72
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-03-28 19:25:20 -05:00
Frédéric Guillot 19f4aa01f3 Update role for Almanach 4.0.3
Change-Id: Iafd1e77646c6bdde81116aad7899d1d85f976bc1
2017-01-23 15:55:05 -05:00
Jean-Philippe Evrard c87d755f57 Use systemd module instead of shell
Using ansible systemd module to daemon reload and service reload
is the solution for the future. Let's embrace it!

Change-Id: I808c72fbea6353da102f4d4569b446ec9fbe8df1
Signed-off-by: Jean-Philippe Evrard <jean-philippe.evrard@rackspace.co.uk>
2017-01-19 13:30:39 +00:00
Jesse Pretorius cf25711398 Remove join filter from pip module tasks
Ansible 2.2 now treats the 'name' argument for the pip module
as a list, removing the need for us to implement the join
filter to optimise the install execution.

Change-Id: Id5d7d103c15711e4c9959112be46f777e06ded1d
2016-11-09 21:39:28 +00:00
Frédéric Guillot bde023eee8 Make config files compatible with Almanach 3.3.x
Change-Id: I87becaf01439ba6397d7b9e02c91546dfb4dd1e1
2016-11-08 13:13:22 -05:00
Frédéric Guillot 837e546212 Make project compatible with CI infra
Change-Id: I5a6e77b98566ee7086f2d9b68d3ac55747ad2778
2016-10-31 14:27:36 -04:00
Frédéric Guillot f9760d8c98 Make the role compatible with Ubuntu Xenial 2016-10-05 13:02:06 -04:00
Frédéric Guillot 7610442766 Use OpenStack project layout 2016-10-04 11:43:09 -04:00