forked from NetSys/bess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvagrant.yml
28 lines (22 loc) · 816 Bytes
/
vagrant.yml
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
- include: packages.yml
- include: docker.yml
- hosts: all
tags: vagrant
tasks:
- name: Reboot after 20 sec on kernel panic
sysctl: name=kernel.panic value=20 sysctl_set=yes
become: true
- name: Panic on oops
sysctl: name=kernel.panic_on_oops value=1 sysctl_set=yes
become: true
- name: Enable huge pages
sysctl: name=vm.nr_hugepages value=1024 sysctl_set=yes
become: true
- user: name=vagrant groups=adm,docker append=yes
become: true
- name: Bind /opt/bess as ~/bess
mount: name=/home/vagrant/bess fstype=none opts=bind src=/opt/bess state=mounted
become: true
- name: Set PATH
lineinfile: dest=/etc/environment line='PATH="/opt/bess/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"'
become: true