validations-common/validations_common/roles/check_cpu
Gael Chamoulaud (Strider) 6243262f1e
Add shared configuration for all molecule test
This patch adds a molecule configuration file at the repository
level (validations-common/.config/molecule/config.yml) which defines
all the default values for molecule.yml files in all roles.

This patch also introduces a common Dockerfile (UBI8 image) shared
between all the role molecule tests. This Dockerfile will install the
CentOS 8.x Linux Repos and GPG Keys during the image build.

This Dockerfile is located in validations-common/.config/molecule
directory and it is shared through a relative symbolic link between all
the molecule directories.

NOTE: tox-ansible doesn't manage shared molecule configuration at the
project level (see [1]). To be able to use it, we have to explicitly add
the driver name in each molecule.yml file in the roles level. Once [1]
will be fixed, these will be removed.

[1] - https://github.com/ansible-community/tox-ansible/issues/88).

Change-Id: I907e2a13a3ba3b152ad7036fa1bb249bec980b76
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2021-05-05 11:59:40 +02:00
..
defaults Make some roles more generic 2020-03-05 16:59:43 +01:00
molecule/default Add shared configuration for all molecule test 2021-05-05 11:59:40 +02:00
tasks Validations now gather only the subset of facts they need 2021-02-23 10:42:51 +01:00
README.md Make some roles more generic 2020-03-05 16:59:43 +01:00

README.md

Undercloud-cpu

An Ansible role to check if the Undercloud fits the CPU core requirements

Requirements

This role could be used before or/and after the Undercloud installation.

Role Variables

  • min_undercloud_cpu_count: <8> -- Minimal number of CPU core

Dependencies

No dependencies.

Example Playbook

- hosts: undercloud
  roles:
     - { role: undercloud-cpu, min_undercloud_cpu_count: 42 }

License

Apache 2.0

Author Information

Red Hat TripleO Validations Team