From e68c7f36d60dae46ad364a81a2e649489663b4a9 Mon Sep 17 00:00:00 2001 From: "Gael Chamoulaud (Strider)" Date: Tue, 14 Sep 2021 11:13:32 +0200 Subject: [PATCH] Add new metadata keys to the validation playbooks This patch adds two new metadata keys to the validation playbooks: - categories: A list of technical tags - products: A list of targeted products (here mainly common) This patch is also part of the Validation Metadata Evolution for the Validations Framework. Change-Id: Ie6b3a42a09292eadd4233b180132140052d89f09 Signed-off-by: Gael Chamoulaud (Strider) --- validations_common/playbooks/512e.yaml | 6 ++++++ validations_common/playbooks/check-cpu.yaml | 7 +++++++ .../playbooks/check-disk-space-pre-upgrade.yaml | 6 ++++++ validations_common/playbooks/check-disk-space.yaml | 6 ++++++ validations_common/playbooks/check-ftype.yaml | 6 ++++++ .../playbooks/check-latest-packages-version.yaml | 6 ++++++ validations_common/playbooks/check-ram.yaml | 7 +++++++ validations_common/playbooks/check-selinux-mode.yaml | 5 +++++ validations_common/playbooks/dns.yaml | 5 +++++ validations_common/playbooks/no-op.yaml | 6 ++++++ validations_common/playbooks/ntp.yaml | 6 ++++++ validations_common/playbooks/service-status.yaml | 7 +++++++ validations_common/playbooks/validate-selinux.yaml | 6 ++++++ 13 files changed, 79 insertions(+) diff --git a/validations_common/playbooks/512e.yaml b/validations_common/playbooks/512e.yaml index e48e5b7..76c34b4 100644 --- a/validations_common/playbooks/512e.yaml +++ b/validations_common/playbooks/512e.yaml @@ -9,5 +9,11 @@ groups: - prep - pre-deployment + categories: + - storage + - disk + - system + products: + - common roles: - advanced_format_512e_support diff --git a/validations_common/playbooks/check-cpu.yaml b/validations_common/playbooks/check-cpu.yaml index 0842586..77773e4 100644 --- a/validations_common/playbooks/check-cpu.yaml +++ b/validations_common/playbooks/check-cpu.yaml @@ -10,6 +10,13 @@ - prep - backup-and-restore - pre-introspection + categories: + - system + - cpu + - core + - os + products: + - common minimal_cpu_count: 8 roles: - check_cpu diff --git a/validations_common/playbooks/check-disk-space-pre-upgrade.yaml b/validations_common/playbooks/check-disk-space-pre-upgrade.yaml index d3d0085..6257af3 100644 --- a/validations_common/playbooks/check-disk-space-pre-upgrade.yaml +++ b/validations_common/playbooks/check-disk-space-pre-upgrade.yaml @@ -8,6 +8,12 @@ free space before starting an upgrade groups: - pre-upgrade + categories: + - system + - disk + - upgrade + products: + - common volumes: - {mount: /var/lib/docker, min_size: 10} - {mount: /var/lib/config-data, min_size: 3} diff --git a/validations_common/playbooks/check-disk-space.yaml b/validations_common/playbooks/check-disk-space.yaml index baa83c5..0add425 100644 --- a/validations_common/playbooks/check-disk-space.yaml +++ b/validations_common/playbooks/check-disk-space.yaml @@ -10,6 +10,12 @@ groups: - prep - pre-introspection + categories: + - system + - disk + - upgrade + products: + - common volumes: - {mount: /var/lib/docker, min_size: 10} - {mount: /var/lib/config-data, min_size: 3} diff --git a/validations_common/playbooks/check-ftype.yaml b/validations_common/playbooks/check-ftype.yaml index b5c7554..97f64f0 100644 --- a/validations_common/playbooks/check-ftype.yaml +++ b/validations_common/playbooks/check-ftype.yaml @@ -9,5 +9,11 @@ with ftype=0 in any deployed node. groups: - pre-upgrade + categories: + - storage + - xfs + - disk + products: + - common roles: - xfs_check_ftype diff --git a/validations_common/playbooks/check-latest-packages-version.yaml b/validations_common/playbooks/check-latest-packages-version.yaml index a9eab1b..52035da 100644 --- a/validations_common/playbooks/check-latest-packages-version.yaml +++ b/validations_common/playbooks/check-latest-packages-version.yaml @@ -9,5 +9,11 @@ before starting an upgrade. groups: - pre-upgrade + categories: + - packages + - rpm + - upgrade + products: + - common roles: - check_latest_packages_version diff --git a/validations_common/playbooks/check-ram.yaml b/validations_common/playbooks/check-ram.yaml index 960faef..ac0a37e 100644 --- a/validations_common/playbooks/check-ram.yaml +++ b/validations_common/playbooks/check-ram.yaml @@ -10,6 +10,13 @@ - prep - pre-introspection - pre-upgrade + categories: + - system + - ram + - memory + - os + products: + - common minimal_ram_gb: 24 roles: - check_ram diff --git a/validations_common/playbooks/check-selinux-mode.yaml b/validations_common/playbooks/check-selinux-mode.yaml index 19c4618..7936f26 100644 --- a/validations_common/playbooks/check-selinux-mode.yaml +++ b/validations_common/playbooks/check-selinux-mode.yaml @@ -9,5 +9,10 @@ groups: - prep - pre-introspection + categories: + - security + - selinux + products: + - common roles: - check_selinux_mode diff --git a/validations_common/playbooks/dns.yaml b/validations_common/playbooks/dns.yaml index 58b0546..b1d3562 100644 --- a/validations_common/playbooks/dns.yaml +++ b/validations_common/playbooks/dns.yaml @@ -8,6 +8,11 @@ Verify that the DNS resolution works groups: - pre-deployment + categories: + - networking + - dns + products: + - common server_to_lookup: example.com roles: - dns diff --git a/validations_common/playbooks/no-op.yaml b/validations_common/playbooks/no-op.yaml index 3a4a734..986077c 100644 --- a/validations_common/playbooks/no-op.yaml +++ b/validations_common/playbooks/no-op.yaml @@ -9,5 +9,11 @@ the validations framework works. groups: - no-op + categories: + - noop + - dummy + - test + products: + - common roles: - no_op diff --git a/validations_common/playbooks/ntp.yaml b/validations_common/playbooks/ntp.yaml index 978990f..7022be7 100644 --- a/validations_common/playbooks/ntp.yaml +++ b/validations_common/playbooks/ntp.yaml @@ -11,5 +11,11 @@ that it is indeed running and connected to an NTP server on all nodes. groups: - post-deployment + categories: + - networking + - time + - os + products: + - common roles: - ntp diff --git a/validations_common/playbooks/service-status.yaml b/validations_common/playbooks/service-status.yaml index 5d6326b..d423bd4 100644 --- a/validations_common/playbooks/service-status.yaml +++ b/validations_common/playbooks/service-status.yaml @@ -14,5 +14,12 @@ - pre-upgrade - post-deployment - post-upgrade + categories: + - systemd + - container + - docker + - podman + products: + - common roles: - service_status diff --git a/validations_common/playbooks/validate-selinux.yaml b/validations_common/playbooks/validate-selinux.yaml index f6100b5..127be8d 100644 --- a/validations_common/playbooks/validate-selinux.yaml +++ b/validations_common/playbooks/validate-selinux.yaml @@ -12,6 +12,12 @@ - post-deployment - pre-upgrade - post-upgrade + categories: + - security + - selinux + - audit + products: + - common validate_selinux_working_dir: /tmp validate_selinux_audit_source: /var/log/audit/audit.log validate_selinux_skip_list_dest: "{{ validate_selinux_working_dir }}/denials-skip-list.txt"