Commit Graph

21 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov bf019ab6d7 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: I53c0166beb446802641c701f6e43d5e317f9d54a
2023-08-23 09:31:20 +02:00
Jonathan Rosser 37efa0a469 Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: I83375d4d96fee13c21dc133dbf5a5b8ed64b826a
2021-03-16 07:58:51 +00:00
Jonathan Rosser c25a19af45 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

Depends-On: Ia88b8e606a19ad8ee20665e125df1079b0a771ff
Change-Id: I88c4317a711ec9c8e00b13a2f4deede1e53830b1
2021-03-11 14:37:27 +00:00
Jean-Philippe Evrard 381061488d 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: Icd2d1f8f4ee930416c81b9d00fa2e3bc36dac386
2019-05-14 13:42:34 +00:00
Guilherme Steinmüller 4d752ced33 debian: add support
This patch updates the meta to reflect it's support
of Debian accordingly.

Depends-On: I8e5761956553b8d6c100426ea14672b5a465a6dc

Change-Id: I381eb2d6bd6336530983e5bb4ae3e2519ab3b600
2019-04-10 21:15:34 +00:00
Markos Chandras 23c7861192 SUSE: Add support for openSUSE Leap 15
Change-Id: I6f76954e886262739e315a391b4acc66c1f12a01
2018-09-26 11:53:06 +01:00
Jesse Pretorius b54f44e74b 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: Ic3717c372ba6fff981c79a1580e658a77d638e18
2018-09-16 05:03:57 +00:00
Jonathan Rosser ccca40f22a Add bionic to galaxy_info metadata
Change-Id: Ia97c405a8342f7179f37ee380eb8b96853f2074d
2018-08-02 14:55:17 +01:00
Jesse Pretorius 30ec2a87f6 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: Ia05fc004e11eada426bc81c45bbc3732b9126bbe
2018-07-31 12:53:51 +01:00
Jean-Philippe Evrard 86d3d2deae 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: I11e7575c744d36bb9d0b0c7121e82275f8f82ab2
2017-12-05 11:54:22 +00:00
Jean-Philippe Evrard d3ce7e99e6 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: Ifd4218f49b2a555c42de20ce79afca4d56cf99fc
2017-10-11 08:38:26 +00:00
Jesse Pretorius 68a7905f29 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: I61d20c0a2c92a43926f27fd9efb1ec10b05c6eea
2017-04-21 16:13:30 +01:00
Andy McCrae 857b45ea97 Remove Trusty support from os_aodh role
Change-Id: Ia96cc93af5536ec5eb1810c020af769189ea63c4
Implements: blueprint trusty-removal
2016-12-15 13:15:24 +00:00
Jesse Pretorius c1f309fca8 Update min_ansible_version to 2.0
With the implementation of https://review.openstack.org/392955
the minimum Ansible version for the role is now 2.0.

Change-Id: I19499234749d0d3609969bbf82edf0bd36f0b392
2016-11-07 09:51:23 +00:00
Steve Lewis be906077f9 Implement Ubuntu 16.04 support with SystemD
This change updates the aodh role to support Ubuntu 14.04 with
upstart init and 16.04 with a systemd init.

Some tags for tasks are updated to conform to convention as well.

Change-Id: Ice81e049475b31559c861c0d20bcd26867da321c
Implements: blueprint support-ubuntu-1604
2016-06-18 12:18:03 +00:00
Steve Lewis ae2e55beed Convert default from MongoDB to MySQL storage
In Mitaka the default storage engine was changed and the current
storage engine (MongoDB) was deprecated. Support for MongoDB storage
may be removed upstream during the O* cycle. Now that a migration
path is possible, we should begin the shift.

Change-Id: I94a585f9c1da51c4f278f4a12e29d395a261e716
Related: change I03b5dd14160dba37c992d04275155f7d9037edb0
Related: change Ibfc47ebe0652b38dbc708d2a0ab58a4288230228
Related: blueprint only-support-sqlalchemy-in-aodh
Upgrade-Impact: db create and data migration becomes necessary
Upgrade-Related: change If0ac3e530ab007118dfd5b842826ba95613ac61d
2016-06-10 19:52:14 -07:00
Jimmy McCrory 25db7ac26b 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: Ide428f507dcf3537b94ac05a15b52981c3a51ba2
2016-06-07 23:42:22 -05:00
Kevin Carter ca5020c34f
Updated role using the Multi-Distro framework
* The default apt packages have been moved into a var file
  that is only loaded when the detected OS is matched.
* The Install task file has had the apt specific tasks moved
  into a named install task file.

Change-Id: I9bad054a3898a688bd372f91de468ad7d5fa41ec
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-04-11 17:15:59 -05:00
Jesse Pretorius ecdeb095b4 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: I469c0bad4388e91ef4642e3879d9c83c601735aa
2016-03-31 17:00:34 +00:00
Matt Thompson cc5cf11996 Enable developer mode
This commit adds the ability to install nova without a repo server.
This pattern is lifted from the os_keystone role and allows us to
further develop functional testing for this role.

NOTE: We also incorporate the in-flight pattern in [1] to allow us to
use an upper constraints file.

[1] https://review.openstack.org/#/c/290446/

Change-Id: I481c89543b2f83c103c25487110650110d9e34b8
2016-03-10 09:55:10 +00:00
Miguel Alex Cantu 639c11f38b Seperated out Telemetry Alarming (Aodh)
The alarming function of Telemetry has been seperated out
by design. This patchset creates new containers for these
alarming services and deploys them accordingly.

See:
http://lists.openstack.org/pipermail/openstack-dev/2015-September/073897.html

DocImpact
UpgradeImpact
Implements: blueprint liberty-release
Change-Id: I25294a25afa76d4d8bddad0a51c48485f33a6d20
2015-10-15 11:20:53 +01:00