CSIT-648 Installation of lxc on physical hosts
[csit.git] / resources / tools / testbed-setup / playbooks / 01-host-setup.yaml
index 07bbe4a..ff68821 100644 (file)
     apt: name=socat state=present
   - name: install qemu
     apt: name=qemu-system-x86 state=present
+  - name: Old interface naming
+    command: ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
+  - name: update init for old interface naming
+    command: update-initramfs -u
 - hosts: virl
   remote_user: testuser
   sudo: yes
     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 +1 -name 'session-*' -exec rm -r "{}" \;"
 - hosts: tg:sut
   remote_user: testuser
   sudo: yes
     apt: name=libtool state=present
   - name: Install screen
     apt: name=screen state=present
+  - name: Install lxc
+    apt: name=lxc state=present
   - name: Disable 80-vpp.conf
     command: ln -s /dev/null /etc/sysctl.d/80-vpp.conf