osa: add tool to cleanup host

This tool will contain more things eventually but for
now it'll just cater for a list of things to clean up
in environments with low disk space.

Change-Id: I84568f4de20c6c38c96e7a4c1fcad6d5c949d205
This commit is contained in:
Mohammed Naser 2019-05-31 07:48:20 -04:00
parent 6dea19b539
commit 67c7d0b951
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/bin/bash
# This script reclaims space on a host that might
# be low on disk space by getting rid of logs and
# extra data.
find /openstack/log/ -type f | xargs -n1 truncate -s0