blob: 8bca04e16351ad5340e7bede203f4ce5c9039511 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
---
- name: Interfaces file
template:
src: "files/interfaces_virl"
dest: "/etc/network/interfaces owner=root group=root mode=644"
tags: interfaces
- name: Add VIRL user
user:
name: virl
shell: "/bin/bash"
comment: "VIRL user"
password: "$6$mJPlK5FKLar6$xxXPP0LRhC7T1yhHtym18Z3nKZweTtfTxzi1WpvVHJ0U/Em1UWcHqfMhRApFp0rsY9jHRuL6FfeFbKPN..uDK."
tags: users
- name: Add VIRL user to sudoers
copy:
src: "files/sudoers_virl"
dest: "/etc/sudoers.d/virl owner=root group=root mode=660"
tags: sudoers
- name: Add post up for additional address
copy:
src: "files/ifup"
dest: "/etc/network/if-up.d/virl owner=root group=root mode=755"
tags: interfaces
- name: Set VIRL user authorized key
authorized_key:
user: virl
key: "{{ lookup('file', '/home/testuser/.ssh/id_rsa.pub') }}"
tags: users
- name: Install bridge-utils
apt:
name: "bridge-utils"
state: "present"
tags: apt-install-bridge-utils
- name: Old interface naming
command: "ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules"
tags: interfaces
- name: Update init for old interface naming
command: "update-initramfs -u"
tags: interfaces
- 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"
tags: cron
- 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"
tags: cron
- 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"
tags: cron
- 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 '{}' \\;"
tags: cron
|