Add check-disk-space-pre-upgrade playbooks

Change-Id: Id436449b2ecb9d6301812683ca595fc70b476aa8
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
This commit is contained in:
Gael Chamoulaud (Strider) 2020-04-07 08:54:18 +02:00 committed by Gael Chamoulaud
parent 0f88309091
commit 676a5c9797

View File

@ -0,0 +1,18 @@
---
- hosts: all
vars:
metadata:
name: Verify server fits the disk space requirements to perform an upgrade
description: >
Make sure that the root partition on the server node has enough
free space before starting an upgrade
groups:
- pre-upgrade
volumes:
- {mount: /var/lib/docker, min_size: 10}
- {mount: /var/lib/config-data, min_size: 3}
- {mount: /var, min_size: 16}
- {mount: /, min_size: 20}
roles:
- check_disk_space