Commit Graph

12 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov c7b2ad25c9 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: Ib51c7ec8d83ffe82c98d1c8d3200ce4510775895
2023-07-14 17:11:05 +00:00
Jonathan Rosser 8b53883914 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: Ifd45cedcf98487b1a8b5531962529f0784f3065e
2021-03-10 16:31:37 +00:00
Guilherme Steinmüller 1d84cdf53e debian: add support
This patch updates the meta to reflect it's support
of Debian accordingly.

Depends-On: I9a92b73c419a0dc1cca40dacfef75de61a61db94
Change-Id: I9ead1c078c3d3cffee89e03bd35a734c007aeeba
2019-04-09 15:19:03 +00:00
Jesse Pretorius 11c0ef466d 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: Icb4302793cb0a2a67eef21ab0822bfe4a81cbcab
2018-09-15 16:33:15 -06:00
Jesse Pretorius ddb31b12a8 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.

With the dependent patches, the openstack_openrc role is now executed once
on the designated host, so it is no longer required as a meta-dependency for
the role.

Depends-On: https://review.openstack.org/579233
Depends-On: https://review.openstack.org/579959
Change-Id: Ib46638d1cb35e677ecfe789a32bb69a024042d6f
2018-07-06 13:48:47 +00:00
Jean-Philippe Evrard d5200233f4 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: I38767d9f5112ee5729ff59860645ff994d4f23b3
2017-12-05 11:54:44 +00:00
Jean-Philippe Evrard 00e881ae34 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.

The role status isn't "complete" because no functional test
of the role has been implemented.

Change-Id: Ie6c12ee189c0d29446d1fe292926216a60bbf160
2017-10-11 08:52:14 +00:00
Jesse Pretorius f97d970fdc Use package module to install distro packages
Consolidate distro package install tasks into a
single task using the package module and pass
the package list into the name instead of using
a with_items loop.

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: Id00e704fd89f5dc40a143a9567c859ba78b76668
2017-05-02 11:29:06 +01:00
Jesse Pretorius da1f3eb15b 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: Ib457a9c68f4cf627b0496574cda628ed304692c1
2016-11-07 17:46:09 +00:00
Jimmy McCrory 15c80abdbc Implement Multi-OS support in os_cloudkitty
This change implements support for Xenial and CentOS 7 within the
os_cloudkitty role.

Change-Id: Id2abe9099171080bd3d3ceb3a54222a5dfdefe2f
Implements: blueprint multi-platform-host
2016-08-02 08:07:58 +00:00
Jimmy McCrory 3828fccefe 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: I0ecd54e31d7d187efc18be83bfc54c2ec30b7b6c
2016-07-06 10:38:55 -07:00
Michael Rice 284c318e6e first commit 2016-05-08 12:03:41 -05:00