Commit Graph

21 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 17fc5d6465 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: I32efef68c8ade24fb164f2cfcecd8e7147bf5f0e
2023-07-14 05:42:23 +00:00
Jonathan Rosser e00da435b4 Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: Ifa117789eaa79b3107a4a3dd8d1e1379ca04d238
2021-03-16 08:00:40 +00:00
Jonathan Rosser 769da7271d 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: Ia0b927fe775d5638cd09ecb91af550892764353d
2021-03-10 12:16:37 +00:00
Jean-Philippe Evrard bc0a2619e4 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: I0f4ab41c87fb6959452c3f0923281d40202d7254
2019-05-20 11:30:58 +02:00
Guilherme Steinmüller 400d926b2c 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: Ib5ae09823dccc4531557e3fbd1e55aa5fda7d244
2019-04-11 00:37:23 +00:00
Markos Chandras 152bf823c7 SUSE: Add support for openSUSE Leap 15
Change-Id: Ie7349d6f76d8ff6f1fa713bfeb5bfc3385a78513
2018-09-26 11:57:14 +01:00
Jonathan Rosser 40a1f1643f Add bionic to galaxy_info metadata
Change-Id: Ib71e4317dc1b06af3b4957e434cb02606c22e156
2018-08-02 14:56:22 +01:00
Jesse Pretorius 4766a2fa14 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. As there are no required packages left, the task to install them is
also removed.

The openstack_openrc role is now executed once on the designated host, so
it is no longer necessary as a meta-dependency for the role.

Ceilometer no longer has an API service, so the service setup task for it is
removed as it is unnecessary, along with the related variables which are no
longer used.

Depends-On: https://review.openstack.org/579233
Depends-On: https://review.openstack.org/579959
Change-Id: I4072acc1770432526a8bc26ebb5833b6fdd61f0a
2018-07-03 20:00:28 +00:00
Jean-Philippe Evrard 51c3b98e96 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: Ida4ab55cde5b220d62a5b2ae4a503bffd1f82497
2018-02-07 19:35:37 +00:00
Jean-Philippe Evrard 43ffd98114 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: Ib86d99a78a97e0cc38941c366a72d299af724f88
2017-10-20 14:36:02 +00:00
Markos Chandras 15ca22d4e0 Add support for the openSUSE Leap distributions
Add support for the openSUSE Leap distributions. Nothing special is
required for this except for adding the appropriate distro variables
file and also update the zypper cache before package installation.
Moreover, for tests to pass, we need to use the OBS repository to
install the MongoDB packages since they are not provided in the default
openSUSE distribution repositories for Leap < 42.3

Change-Id: Ifa3968f7f578174cf12737c758fa2bca30393fb0
2017-07-11 11:19:54 +01:00
Jesse Pretorius a30e48910c 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: Icbb789cfce96df62dff46db1625509a923d79328
2017-04-21 16:12:50 +01:00
Andy McCrae 17cd41e1cd Remove Trusty support from os_ceilometer role
As a part of removing Trusty from OpenStack-Ansible we shall aim to
remove this from all the roles.

Testing has already been removed for Trusty in the integrated build and
all individual repositories on master (Ocata), as such we can now go
ahead and remove the support within the roles.

Change-Id: Ia564599a02eeafecc5614271fe4afbb1eb812aea
Implements: blueprint trusty-removal
2016-12-12 11:49:16 +00:00
Jesse Pretorius 60f724caeb 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: Iac9b677db744167a1bb010ba659dc0d833dec772
2016-11-07 17:47:21 +00:00
Steve Lewis 0b0f0de369 Implement Ubuntu 16.04 support with SystemD
This change updates the ceilometer role to support Ubuntu 14.04 with
upstart init and 16.04 with a systemd init.

Change-Id: I4cac6afafd7e9d029a0daadd9de93433f06f7d52
Implements: blueprint support-ubuntu-1604
2016-06-14 11:33:42 -07:00
Jimmy McCrory 3255e4eaf5 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: I1147a6b172697304e6a4cbf39b39a487e0656cd2
2016-06-07 23:28:29 -05:00
Jesse Pretorius b13cdf1343 Ensure that pip lock down happens before other dependencies
The pip_install role is depended on by a lot of other roles, and
therefore sometimes gets processed prior to the pip_lock_down
role resulting in the pip, setuptools and wheels packages being
installed from a source other than the repo server once the repo
server is available. This is not the intended behaviour - the
repo server should always be a the primary source once it's
available.

This patch ensures that the pip_lock_down role is applied before
all the other dependent roles to ensure that the expected
behaviour is followed.

Change-Id: If10535071913a51c8f31ec9d9936ad89b1f3f5d0
2016-03-31 19:28:32 +00:00
Steve Lewis ea3bf5be30 Enable functional convergence testing
This commit updates tests/test.yml to deploy rabbitmq, keystone +
galera, and ceilometer for a functional convergence test.

We point keystone at a non-existent memcached server, but this can
be adjusted to build memcached if deemed necessary.

Closes-Bug: #1553977
Change-Id: I21d8a5548c43c96aaeaa14df6b22e28074318146
2016-03-09 20:46:11 -08:00
Steve Lewis 5727236e96 Enable developer mode
This commit adds the ability to install ceilometer without a repo
server. This pattern is lifted from the os_keystone role and allows
us to further develop functional testing for this role.

Change-Id: Id81a0e8d3cd76d589c0710fb960990ade57a7083
2016-03-09 18:59:28 -08:00
Steve Lewis e704560e49 Remove unused galera_client and related vars
This is related to the effort of adding functional testing to this role.

Change-Id: Iae3aba06d4f0ebced8879c392ba49955834a874b
2016-03-09 10:56:22 -08:00
Miguel Cantu b2251e12be Implement Ceilometer
This patch implements the implement-ceilometer blueprint.
It addes the necessary role/variables to deploy ceilometer
with a Mongodb backend. The Monogdb backend is assumed to
be up and configured and the playbooks only require a few
values to be set in user_variables to establish a connection.

Change-Id: I2164a1f27f632ce254cc2711ada2c449a9961fed
Implements: blueprint implement-ceilometer
2015-07-07 19:31:04 +00:00