fc8cebad68
Some validations had a period at the end of their names, which made them look inconsistent in the UI. Remove those periods from the names. This change also fixes the name of the 'stonith-exists' validation, as it was previous placed in the incorrect place in the yaml file. Change-Id: I24db63dc944cdae5998ef2d1b7686c868806d3f6
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
---
|
|
- hosts: Controller
|
|
vars:
|
|
metadata:
|
|
name: Validate stonith devices
|
|
description: >
|
|
Verify that stonith devices are configured for your OpenStack Platform HA cluster.
|
|
We don't configure stonith device with TripleO Installer. Because the hardware
|
|
configuration may be differ in each environment and requires different fence agents.
|
|
How to configure fencing please read https://access.redhat.com/documentation/en/red-hat-openstack-platform/8/paged/director-installation-and-usage/86-fencing-the-controller-nodes
|
|
groups:
|
|
- post-deployment
|
|
become: true
|
|
|
|
tasks:
|
|
- name: Check if we are in HA cluster environment
|
|
register: pcs_cluster_status
|
|
command: pcs cluster status
|
|
failed_when: false
|
|
changed_when: false
|
|
|
|
- name: Get all currently configured stonith devices
|
|
when: "pcs_cluster_status.rc == 0"
|
|
register: stonith_devices
|
|
command: "pcs stonith"
|
|
changed_when: false
|
|
|
|
- name: Verify the stonith device are configured
|
|
fail:
|
|
msg: "Stonith devices are not configured."
|
|
when: >
|
|
pcs_cluster_status.rc == 0
|
|
and
|
|
'NO stonith devices configured' in stonith_devices.stdout
|
|
|