1
0
Fork 0
mirror of https://github.com/Luzifer/elb-instance-status.git synced 2024-11-14 00:32:41 +00:00
elb-instance-status/elb-instance-status.yml
2016-06-03 12:55:19 +02:00

16 lines
No EOL
710 B
YAML

---
- name: Ensure there are at least 30% free inodes on /
command: test $(df -i | grep "/$" | xargs | cut -d ' ' -f 5 | sed "s/%//") -lt 70
- name: Ensure there are at least 30% free inodes on /var/lib/docker
command: test $(df -i | grep "/var/lib/docker$" | xargs | cut -d ' ' -f 5 | sed "s/%//") -lt 70
- name: Ensure there is at least 30% free disk space on /var/lib/docker
command: test $(df | grep "/var/lib/docker$" | xargs | cut -d ' ' -f 5 | sed "s/%//") -lt 70
- name: Ensure volume on /var/lib/docker is mounted
command: mount | grep -q /var/lib/docker
- name: Ensure docker can start a small container
command: docker run --rm alpine /bin/sh -c "echo testing123" | grep -q testing123