Commit Graph

17 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 045f45c12c 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: Iaab0ad50fd65287094522f77283a0112859d7730
2023-07-14 20:58:47 +02:00
Jonathan Rosser f67c296bff Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: I29de46e830e0a63c1da90043ec08c5dcc56b7e3e
2021-03-25 10:20:05 +00:00
Jonathan Rosser 2fc3a3ee49 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: Ibec329fa5dca39222519b99ad27d78b46c11633e
2021-03-10 12:16:40 +00:00
Guilherme Steinmüller bbbfd6e7c3 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: https://review.openstack.org/652206
Change-Id: I308aab7fbd93686c36043f8a29d1f4ef9e8acfe2
2019-04-13 22:12:08 +00:00
Jesse Pretorius 75a7c04f39 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.

Change-Id: I78d209a4c35379ede7f98019edc1250903a87895
2018-09-15 20:49:31 -06:00
Jonathan Rosser 25f6b4173e Add bionic to galaxy_info metadata
Change-Id: I9c5eef75f60414a98dd395b117a95751b31cb225
2018-08-02 15:06:53 +01:00
Jesse Pretorius ad2d239eb4 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: I9ce106569ced891c551b36506d360e4b8718c7e3
2018-07-13 19:15:56 +00:00
Jean-Philippe Evrard 309ee8cb7a 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: I8b2b57c159580bf818237b58c7a72b55d4efce36
2017-12-05 11:56:32 +00:00
Aaron Mehar 2701e37f78 Adds CentOS 7 support
Fix circular python issues, same fix in Keystone and Barbican

Change-Id: I77e60ed42ab43e3f5984b8a52dc5898325df1c8e
2017-11-23 16:26:54 +00:00
Jean-Philippe Evrard a0e6e415c6 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: I860732eb292ca521b991e5b97a317461944e362a
2017-10-10 09:41:12 +00:00
Jesse Pretorius 27545d222a 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: Ieaf67c9a776c43e9fd39c63a92642b55a49bb9bc
2017-04-21 16:51:57 +01:00
Andy McCrae bfdbbf6065 Remove Trusty support from os_trove role
Change-Id: I5f9d920cc99bcc62859663434b2615c317d8fbdc
Implements: blueprint trusty-removal
2016-12-15 15:10:27 +00:00
Jesse Pretorius 6ec6dc71c0 Use updated get_url module checksum functionality
Starting in Ansible 2.0, the get_url [1] module provides the
ability for a checksum to be provided to the get_url module
which will be verified against the local destination file
and the task skipped if it matches.

[1] http://docs.ansible.com/ansible/get_url_module.html

This patch implements the use of this functionality.

The ability to ignore a venv download failure is also 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: Iea1e6428d5c2e22eb6bce71d3ad5350864b536e1
2016-11-07 17:37:39 +00:00
Donovan Francesco f12ecd2e83 Add scaffolding for OpenStack-CI tests
Change-Id: I768a5ece1417933248c76fe7e269b9248d0baed1
2016-08-26 16:26:42 +02:00
Donovan Francesco (IS) 88df0abd2d Updates 2016-08-25 14:59:31 +02:00
Donovan Francesco (IS) 28f3145e6b Update 2016-08-25 14:56:41 +02:00
Donovan Francesco 4b80fd260d Initial Commit 2016-08-25 14:54:34 +02:00