BSD virtual machine setup

This commit is contained in:
Jorge Morante 2016-05-23 08:01:02 +02:00
parent b9f216d966
commit 6d179e2177
3 changed files with 21 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
fingers.log
copy-test.txt
.vagrant/

14
Vagrantfile vendored Normal file
View File

@ -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

6
test/bsd_provisioning.sh Normal file
View File

@ -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