diff options
author | Peter Mikus <pmikus@cisco.com> | 2017-05-16 11:48:43 +0200 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2017-05-16 09:55:12 +0000 |
commit | 9bbb03e695e3d80b8408a90574e995106ce0cf38 (patch) | |
tree | 175cca0915c6842dd321ddb79b8d006471dcd5b7 /resources/tools/testbed-setup/playbooks | |
parent | ece6209da971995eddcb32791872f7dc90a66586 (diff) |
Add Garbage Cleanning to VIRL
- add cleaning of old VPP builds (deb|rpm)
- add cleaning of old session dirs
- add cleaning of old QEMU logs
Change-Id: Ib2849cc3969de75525f13d80dc87b32fb82865af
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/testbed-setup/playbooks')
-rw-r--r-- | resources/tools/testbed-setup/playbooks/01-host-setup.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml index 07bbe4a724..93b2246ed8 100644 --- a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml +++ b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml @@ -41,6 +41,26 @@ copy: src=files/sudoers_virl dest=/etc/sudoers.d/virl owner=root group=root mode=660 - name: Set VIRL user authorized key authorized_key: user=virl key="{{ lookup('file', '/home/testuser/.ssh/id_rsa.pub') }}" + - cron: + name: QEMU log garbage collector + minute: 0 + hour: 0 + job: "find /var/log/libvirt/qemu -type f -mtime +14 -name 'instance*.log' -delete" + - cron: + name: VPP deb package garbage collector + minute: 0 + hour: 0 + job: "find /tmp -type f -atime +14 -name '*.deb' -delete" + - cron: + name: VPP rpm package garbage collector + minute: 0 + hour: 0 + job: "find /tmp -type f -atime +14 -name '*.rpm' -delete" + - cron: + name: NFS scratch dir garbage collector + minute: 0 + hour: 0 + job: "find /nfs/scratch/ -type d -mtime +14 -name 'session-*' -delete" - hosts: tg:sut remote_user: testuser sudo: yes |