tripleo-validations/roles/check_for_dangling_images
Gael Chamoulaud (Strider) 6a3081beac
Add shared configuration for all molecule test
This patch adds a molecule configuration file at the repository
level (tripleo-validations/.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 tripleo-validations/.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).

Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
Change-Id: I4717825e2767dc55016a30fb62aa6a5541f26cfd
(cherry picked from commit 66193a69b7)
2021-06-02 10:57:47 +02:00
..
defaults Check for dangling images 2021-05-14 19:41:37 +00:00
molecule/default Add shared configuration for all molecule test 2021-06-02 10:57:47 +02:00
tasks Check for dangling images 2021-05-14 19:41:37 +00:00
README.md Check for dangling images 2021-05-14 19:41:37 +00:00

README.md

Check-for-dangling-images

Add Ansible role to check for dangling images

Requirements

This role will be executed pre Update.

Role Variables

  • check_for_dangling_images_debug: <'false'> -- debugging mode.

Dependencies

No Dependencies

Example Playbook

- hosts: servers
  roles:
  - { role: check_for_dangling_images, check_for_dangling_images_debug: true }

License

Apache

Author Information

Red Hat TripleO DFG:Upgrades