8 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov
c97b49a220 Auto-fix usage of modules via FQCN
Since ansible-core 2.10 it is recommended to use modules via FQCN
In order to align with recommendation, we perform migration
by applying suggestions made by `ansible-lint --fix=fqcn`

Change-Id: Ide77ad6afc07c17da15d7a6fc88197384f306981
2025-02-12 08:56:59 +01:00
Dmitriy Rabotyagov
557bcbfd7a Auto-fix yaml rules
In order to reduce divergance with ansible-lint rules, we apply
auto-fixing of violations.

In current patch we replace all kind of truthy variables with
`true` or `false` values to align with recommendations along with
alignment of used quotes.

Change-Id: I8df4d077e26c710379d1cb7e4036bab15bf5522f
2025-02-12 08:54:27 +01:00
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
Dmitriy Rabotyagov
fe1f87b387 Fix gnocchi db population
python3-gnocchiclient seems to be required for ceilometer to
correctly populate gnocchi db

Change-Id: I6c68e7d0710ea3fa3c45fa3aa27b40c9e3ca6f71
2019-07-26 05:09:56 +00:00
Dmitriy Rabotjagov
31378141ab Fixes gnocchi resource-type list being empty after setup
We don't have /etc/ceilometer/gnocchi_resources.yaml by default,
and this file is not currently distributed.
So after gnocchi and ceilometer setup, ceilometer-upgrade is not runned,
which results in empty resource-type.

This patch checks gnocchi_resources.yaml in it's default location
rather than in etc.

Change-Id: I64d63352a7a8afab86deb86cd3e6d5e1f6387d08
2019-01-14 19:45:16 +02:00
Dmitriy Rabotjagov
98c3f7e51d Distro-install tests for Ubuntu and Centos are voting now.
This patch makes available to completely move to zuul templates,
by adding openstack-ansible-role-distro_install-jobs into list.

Added small fixes to make them working.
Centos has gnocchi_resources.yaml packed with ceilometer-common package,
so test was failing on db_setup task.

Also ceilometer user was not created, as it checks for existance of
ceilometer_central_container group, which was not defined in inventory.

Change-Id: I7fd7a949724f4fa52fa48534a6ef6c8a8efdc290
2018-10-17 10:01:37 +00:00
Ionuț Bîru
866790e315 Remove skip-metering-database deprecated param from ceilometer-upgrade
The task fails to run because it has an unrecognized argument.

This param has been removed in ceilometer in commit 
9323f07f977f320882f8b536c3b54835274826fc

Closes-Bug: #1794680
Change-Id: Id720f106a4ed3325a24007bc6cb293e359ac4968
2018-09-27 09:17:27 +00:00
Kourosh Vivan
9d54c79b82 Fix ceilometer task order
Gnocchi initialization need to be run after ceilometer user creation

Partial-Bug: 1778195
Change-Id: I7715f7df35e10c41d65450c273c3f9cc53d0a855
2018-07-13 11:46:43 +02:00