Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use built-in Vagrant triggers #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Requirements
You need a recent vagrant installed and virtualbox. Get it at http://www.vagrantup.com/downloads.html
and https://www.virtualbox.org/wiki/Downloads

The plugin vagrant-trigger is also required (see below for installing it).

You also need to have root access via sudo so the script can add NAT rules.
Currently Linux and Mac OS X hosts are supported.

Expand All @@ -22,8 +20,6 @@ Get it and use it:

git clone https://github.com/multipath-tcp/mptcp-vagrant.git
cd mptcp-vagrant
# only the first time:
vagrant plugin install vagrant-triggers
vagrant up

This will:
Expand Down
8 changes: 4 additions & 4 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
#######################################################################
}

config.trigger.after :up do
run "./scripts/post_up.sh"
config.trigger.after :up do |trigger|
trigger.run = {path: "scripts/post_up.sh"}
end
config.trigger.after :halt do
run "./scripts/post_halt.sh"
config.trigger.after :halt do |trigger|
trigger.run = {path: "scripts/post_halt.sh"}
end
end