Commit Graph

18 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 1c49c7d2c8 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: I30eff91392dcab1e76c4fee89ead7a6e03838b2d
2023-07-14 19:56:42 +02:00
Jonathan Rosser b8f9f0432f Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: I5f2438f064fe097b990dfdd433cc6fb84cd3b3d3
2021-03-16 08:16:22 +00:00
Jonathan Rosser b94a60766e 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: I502b70c234ef22271c7d947b6c54b687ecd010d2
2021-03-10 12:16:40 +00:00
Jean-Philippe Evrard b5e415c337 Clarify supported SUSE versions
This role only support openSUSE Leap 15, not 42.3, not tumbleweed.
Saying all is confusing and a bad practice. This fixes it, while
ensuring the job is properly defined to test that assertion.

Change-Id: Ib9ff57349126466ecac72859f70d25199828ed0c
2019-05-21 12:13:38 +02:00
Guilherme Steinmüller cb497e8851 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: I9f1d64c299e3dbe8c3f182f722b9d0a1aa705b80
2019-04-09 17:02:47 +00:00
Jesse Pretorius 3b829ec3a3 Remove galera_client meta-dependency
Given that pymysql is pure python and has no C binding
dependencies, we no longer need the role to install the
MariaDB client libraries.

Depends-On: https://review.openstack.org/602907
Change-Id: Ide6a83f980565af9cedb22e0ededaa2dea3487c6
2018-09-17 12:20:35 +00:00
Jonathan Rosser 975452c574 Add bionic to galaxy_info metadata
Change-Id: Ice24f863d2e572a4ebf0269a955efb774efc4af7
2018-08-02 15:05:15 +01:00
Jesse Pretorius 009acad1a0 Execute service setup against a delegated host using Ansible built-in modules
In order to reduce the packages required to pip install on to the hosts,
we allow the service setup to be delegated to a specific host, defaulting
to the deploy host. We also switch as many tasks as possible to using the
built-in Ansible modules which make use of the shade library.

The 'virtualenv' package is now installed appropriately by the openstack_hosts
role, so there's no need to install it any more. The 'httplib2' package is a
legacy Ansible requirement for the get_url/get_uri module which is no longer
needed. The keystone client library is not required any more now that we're
using the upstream modules. As there are no required packages left, the task
to install them is also removed.

Change-Id: Ib4ff0ca76eb7b2ccaa373eeb1812e3d6741193fc
2018-07-12 19:27:08 +01:00
Jean-Philippe Evrard d97f8ae40e Remove pip_install dependency
With addition of pip_install on every node, we don't
need to have pip_install as a meta dependency.

Depends-On: If3412bb888ebb854874bbc43eb76bfcb3e4a7868
Depends-On: I79ff70c438b44753be2a93f004ebbc46de0a963d
Change-Id: Ib425fc3d9db20a94dae4dc2f029d060be986e318
2017-12-05 11:56:05 +00:00
Jean-Philippe Evrard 76d8900a6c Add OpenStack-Ansible metadata
We need to add openstack ansible information in the role
metadata to be able to track role maturity. With it,
we can create a role maturity table and take decisions about
role deprecations.

Change-Id: Idfb21a01b51da9afafd6d578a6fee79ce633df10
2017-10-11 09:04:15 +00:00
Markos Chandras abafaee5c1 Add support for the openSUSE Leap distributions
Add support for the openSUSE Leap distributions. Nothing special is
required for this except adding the appropriate distro variables
file and also update the zypper cache before package installation. We
also had to apply the same virtualenv-tools fix similar to CentOS.

Change-Id: I8bbf0af1149e4c5ea39f82e4fa7be78578cf6a50
2017-08-16 06:14:31 +01:00
Jesse Pretorius 96c46dcf2f Optimise apt cache update task
The update of the apt cache and the package installation
can all be handled in a single task by providing the
package action plugin with the right parameters. This
removes an extra task to optimise execution.

The minimum Ansible version is raised to 2.2 due to a
known bug [1] in Ansible's apt module which does not
update the cache properly if the cache update and the
install are combined in a single task.

[1] https://github.com/ansible/ansible-modules-core/issues/1497

Change-Id: Id49a182f85217cac752f306147bd9f35cc6b9bd4
2017-04-21 16:47:13 +01:00
Flávio Ramalho 95e4f4877b Role cleanup/update for ocata
- Use dictionary for service group mappings, bringing the
  role into line with the method used in other roles;

- Use systemd module instead of shell on the services
  restart handlers;

- Use ansible package module to install distro packages;

- Added variables for CentOS. The role should now support
  CentOS;

- Removed extras folder.

Change-Id: I5c8430804aacceca01c5821ca2528514033d15f4
2017-02-14 09:35:30 -03:00
Andy McCrae 0d3ca83ea0 Remove Trusty support from os_sahara role
Change-Id: I01d2fbf66a0e415ea8f5a7a9906d31707ea320fa
Implements: blueprint trusty-removal
2016-12-15 13:21:43 +00:00
Jesse Pretorius 07505b47a6 Optimise venv fetch mechanism
Unnecessary tasks are removed and the ability to ignore a venv
download failure is removed as this is not necessary or desirable.
It is better for the download to fail and the playbook execution
to stop immediately so that the failure point is exposed.

Change-Id: I2dbe74353e22368074bc3219605e9c4b2da896e8
2016-11-07 17:40:56 +00:00
Flávio Ramalho c5ecb56867 Implement Ubuntu 16.04 Xenial support
This change adds suport for Ubuntu 16.04 with SystemD
while keeping the support for Ubuntu 14.04 with upstart.

Implements: blueprint support-ubuntu-1604
Change-Id: Iffed984d6c2c881cbac31919dc805b6122dd4f3f
2016-06-16 08:48:07 -03:00
Jimmy McCrory 144246bf12 Remove pip_lock_down dependency
The pip_install and pip_lock_down roles have been merged.

Remove pip_lock_down from the role's meta dependencies and test
requirements.

Change-Id: I537994fc2f4c1132938837a7d5428db4f5dc282a
2016-06-14 10:09:19 -07:00
Flávio Ramalho 23f25f425e Initial import 2016-05-12 10:28:58 -03:00