Use .tasks file to trigger removal of stale cloud resources
This commit is contained in:
parent
ad54403c6d
commit
9af650798c
18
.tasks
Normal file
18
.tasks
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# When run automated, randomize to minimize stampeding herd
|
||||||
|
if [ -t 0 ]; then
|
||||||
|
chance=10
|
||||||
|
else
|
||||||
|
chance=$(shuf -i 0-10 -n 1)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $chance -gt 9 ]; then
|
||||||
|
# command lines representing pending work. one will be executed
|
||||||
|
# randomly by the calling environment
|
||||||
|
echo "./tests/cleanup/remove_old_objects_alibaba.sh"
|
||||||
|
echo "./tests/cleanup/remove_old_objects_aws.sh"
|
||||||
|
echo "./tests/cleanup/remove_old_objects_azure.sh"
|
||||||
|
echo "./tests/cleanup/remove_old_objects_openstack.sh"
|
||||||
|
echo "./tests/cleanup/remove_old_objects_vmware.sh"
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user