From 6d179e2177148ff44149ed8205260ed2ff672a52 Mon Sep 17 00:00:00 2001 From: Jorge Morante Date: Mon, 23 May 2016 08:01:02 +0200 Subject: [PATCH] BSD virtual machine setup --- .gitignore | 1 + Vagrantfile | 14 ++++++++++++++ test/bsd_provisioning.sh | 6 ++++++ 3 files changed, 21 insertions(+) create mode 100644 Vagrantfile create mode 100644 test/bsd_provisioning.sh diff --git a/.gitignore b/.gitignore index 1ec9423..4ac6b94 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ fingers.log copy-test.txt +.vagrant/ diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..154a2bc --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,14 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# requires nfs-utils on host + +Vagrant.configure(2) do |config| + config.vm.box = "freebsd/FreeBSD-11.0-CURRENT" + config.ssh.shell = "/bin/sh" + + config.vm.network "private_network", ip: "10.0.1.10", mac: "5CA1AB1E0001" + config.vm.synced_folder ".", "/home/vagrant/shared", :nfs => true + + config.vm.provision "shell", path: './test/bsd_provisioning.sh' +end diff --git a/test/bsd_provisioning.sh b/test/bsd_provisioning.sh new file mode 100644 index 0000000..9b37308 --- /dev/null +++ b/test/bsd_provisioning.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +pkg install -y bash tmux +chsh -s bash vagrant + +echo "run /home/vagrant/shared/tmux-fingers.tmux" > .tmux.conf