tripleo-validations/playbooks/validate-passwords-file.yaml
matbu da989b5d57 Add validate_passwords_file preflight checks validation
Change-Id: If5dd1b46095636867647c708a79f423c7e952dfc
2022-10-18 16:56:20 +02:00

24 lines
809 B
YAML

---
- hosts: undercloud
vars:
metadata:
name: Check Undercloud passwords file
description: |
Disallow updates if the passwords file is missing.
If the undercloud was already deployed, the passwords file needs to be
present so passwords that can't be changed are persisted. If the file
is missing it will break the undercloud, so we should fail-fast and let
the user know about the problem. Both the old and new path to the file
is checked. If either is found, the validation will pass as the old
path will be migrated to the new during and update/upgrade.
groups:
- prep
- pre-upgrade
- pre-update
categories:
- os
products:
- tripleo
roles:
- validate_passwords_file