Commit Graph

25 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 6b298913bc 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
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/888517
Change-Id: Ib1a93dce0f64b6261af06956e3e1ee5472bede9c
2023-08-22 17:31:25 +00:00
Jonathan Rosser 1111c69813 Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: I1c82172d17fb2852c48453b77ffc59f7b9eca528
2021-03-16 08:03:50 +00:00
Jonathan Rosser ee09a2ab62 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: Ie0dbc0c142bfedabb1027e3809463d78e861b625
2021-03-10 12:16:38 +00:00
Jean-Philippe Evrard 36a3f9b89c 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: Icbe93a7c35d59cff18f549c0e193beaf7f879cc2
2019-05-20 12:19:01 +02:00
Guilherme Steinmüller 03b7b41439 debian: add support
This patch updates the meta to reflect it's support
of Debian accordingly as well as rename ubuntu vars
file to debian.

Depends-On: Icf91eee6e369d9a6a95dd0c8772c2760eaff5bd2

Change-Id: I4eb6161d7092c922fe41aa27ff619d287353f575
2019-04-11 00:37:41 +00:00
Markos Chandras 7bac113dc0 SUSE: Add support for openSUSE Leap 15
Change-Id: I1747ad420309bc5781a0f93f978250973734f257
2018-09-26 11:55:48 +01:00
Jesse Pretorius 272e8c3d49 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: I61d023933f68af03ce61146a49b5ec305820e920
2018-09-16 03:28:02 +00:00
Jonathan Rosser 1ef2cf3941 Add bionic to galaxy_info metadata
Change-Id: I634af814ae1393beacd51e5afa0117a55340426a
2018-08-02 15:01:10 +01:00
Jesse Pretorius a8a34fe719 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: I4131312eea8c743e7803ccc622b7642c6082a4c8
2018-07-06 13:48:11 +00:00
Jean-Philippe Evrard be909c77a8 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: I30b5f242578804bc6ca9957d8a1177c53b435ebc
2017-12-15 09:51:42 +00:00
Jean-Philippe Evrard 10eed406d3 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: Ic0bcdf36183f4a2a472ca0f9d171354a154f9aa4
2017-10-11 08:50:58 +00:00
Markos Chandras d471354f1d Add support for the openSUSE Leap distributions
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: Ic2d99cd7639a5b442699fec971c9482a37bb862e
2017-07-11 17:47:41 +01:00
Jesse Pretorius 752a834670 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

Also:
- add license boilerplate to meta file

Change-Id: I0d98c4b7bfbc8fe1bd7c8d1e2b83415f1842fd58
2017-05-02 11:34:05 +01:00
Andy McCrae 6a0c568967 Remove Trusty support from os_gnocchi role
Change-Id: I69dca19fa565bc92974f5dec132228f798d9ce13
Implements: blueprint trusty-removal
2016-12-15 13:17:31 +00:00
Jesse Pretorius af1a24f669 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: I96e815e15d697ca738b0a7d4dd21b71bde9b68ce
2016-11-10 06:58:13 +00:00
Jimmy McCrory 99843f9e35 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: I352af7887cecd5c54d8cf8e1dec57048b8fdc465
2016-06-09 11:29:59 -07:00
Steve Lewis 17b954d8e5 Implement Ubuntu 16.04 support with SystemD
This change updates the Gnocchi role to support Ubuntu 14.04 with
upstart init and 16.04 with a systemd init.

A change for the functional tests disables them. They will be
fixed properly in a following patch.

Change-Id: I6170a3bcc6ad61474a0a70c786b2607915868e17
Related: blueprint support-ubuntu-1604
2016-06-07 09:04:28 -07:00
Jenkins f995806d87 Merge "Initial convergence testing" 2016-04-22 11:58:29 +00:00
Steve Lewis a7c38ce7a1 Initial convergence testing
An initial convergence testing for the role is provided but it is
not installing or configuring ceilometer yet. That work is held back
until we have the role passing basic testing. This stage of testing
also attempts to avoid installing rabbit as an unnecessary
complexity.

A separate container is used for gnocchi so that gnocchi can be
deployed under mod_wsgi without conflicting with Keystone. In turn
some changes to the inventory pattern, and the use of group_vars for
internal and external _lb_vip_address values is introduced here as
there is no load balancer and traffic for each of Keystone and
Gnocchi needs to be addressed appropriately.

Partial-Blueprint: role-gnocchi
Change-Id: I27a76a62b2443787e5347f08e974a9eb3cc33dbe
2016-04-22 00:14:14 +00:00
Jesse Pretorius 6738b4884e Update min_ansible_version to 1.9
This role makes use of the ternary filter which was only introduced in
Ansible 1.9, this patch updates the min_ansible_version to 1.9.

Change-Id: I942761b2039854f68323d7e99ce3d9405f6cc9c3
2016-04-14 11:36:52 +00:00
Steve Lewis 52f0636589 Provide initial steps for Multi-Distro enablement
The role begins by determining which platform is in use, and system
packages are installed based on that platform using a conditional
include pattern introduced throughout OpenStack-Ansible roles.
2016-03-30 15:53:08 -07:00
Steve Lewis a91fbae043 Adjust dependencies now that the roles exist
Removed the vendored config_template plugin, and add a
note about that repo to the metadata for now.

This needs more doc work in the role's docs as those are developed.
2016-03-14 14:36:53 -07:00
Steve Lewis d8faf1fb61 Update role meta requirements to reflect recently added role repos from OSA 2015-12-16 13:59:07 -08:00
Steve Lewis 6de4b4c5b2 Add gnocchi configuration tasks
All config files are now templated, a first attempt at a possibly passable
configuration is provided.  Role requirements are updated to work
around the current state of the OSA project and it's externalized roles.
README is updated to reference the two keystone vars being imported
and update the example playbook a bit.
2015-12-01 16:30:57 -08:00
Steve Lewis c2d25ad2aa Initial Commit 2015-11-20 15:37:39 -08:00