diff options
author | Peter Mikus <pmikus@cisco.com> | 2017-06-13 17:24:26 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2017-06-14 06:36:34 +0000 |
commit | 5835b6c33fc1d4d262c07b8bf606dd04118d8eb5 (patch) | |
tree | 9168f4656faed599f71adc58833b7b00b0c5771a /resources/tools/testbed-setup/playbooks/01-host-setup.yaml | |
parent | 88349038a5923f7323df6f38926f090166a7c60a (diff) |
Update ansible scripts for VIRL installation
Change-Id: I50b9154c43017cec1c4c47552ac2311dea92aa3f
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/testbed-setup/playbooks/01-host-setup.yaml')
-rw-r--r-- | resources/tools/testbed-setup/playbooks/01-host-setup.yaml | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml index fb9b516b6d..6d644e5054 100644 --- a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml +++ b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml @@ -31,10 +31,6 @@ 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 @@ -47,26 +43,28 @@ copy: src=files/ifup dest=/etc/network/if-up.d/virl owner=root group=root mode=755 - 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 "{}" \;" + - name: install bridge-utils + apt: name=bridge-utils 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 + - name: QEMU log garbage collector + cron: minute="0" hour="0" + name="QEMU log garbage collector" + job="find /var/log/libvirt/qemu -type f -mtime +14 -name 'instance*.log' -delete" + - name: VPP deb package garbage collector + cron: minute="0" hour="0" + name="VPP deb package garbage collector" + job="find /tmp -type f -atime +14 -name '*.deb' -delete" + - name: VPP rpm package garbage collector + cron: minute="0" hour="0" + name="VPP rpm package garbage collector" + job="find /tmp -type f -atime +14 -name '*.rpm' -delete" + - name: NFS scratch dir garbage collector + cron: minute="0" hour="0" + name="NFS scratch dir garbage collector" + job="find /nfs/scratch/ -type d -mtime +1 -name 'session-*' -exec rm -r '{}' \\;" - hosts: tg:sut remote_user: testuser sudo: yes |